update makefiles

This commit is contained in:
Steffen Jaeckel 2017-08-28 16:58:26 +02:00
parent afedcd8999
commit 957f161890
3 changed files with 20 additions and 17 deletions

3
.gitignore vendored
View File

@ -53,3 +53,6 @@ test_*.txt
*.bak *.bak
*.orig *.orig
*.asc
*.tar.xz
*.zip

View File

@ -14,7 +14,7 @@ endif
# makes the LTM book DVI file, requires tetex, perl and makeindex [part of tetex I think] # makes the LTM book DVI file, requires tetex, perl and makeindex [part of tetex I think]
docdvi: tommath.src docdvi: tommath.src
cd pics ; MAKE=${MAKE} ${MAKE} ${MAKE} -C pics/ MAKE=${MAKE}
echo "hello" ${silent_stdout} echo "hello" ${silent_stdout}
perl booker.pl perl booker.pl
touch tommath.ind touch tommath.ind

View File

@ -120,28 +120,28 @@ docdvi poster docs mandvi manual:
pretty: pretty:
perl pretty.build perl pretty.build
#\zipup the project (take that!)
no_oops: clean
cd .. ; cvs commit
echo Scanning for scratch/dirty files
find . -type f | grep -v CVS | xargs -n 1 bash mess.sh
.PHONY: pre_gen .PHONY: pre_gen
pre_gen: pre_gen:
perl gen.pl perl gen.pl
sed -e 's/[[:blank:]]*$$//' mpi.c > pre_gen/mpi.c sed -e 's/[[:blank:]]*$$//' mpi.c > pre_gen/mpi.c
rm mpi.c rm mpi.c
zipup: zipup: clean pre_gen new_file manual poster docs
rm -rf ../libtommath-$(VERSION) \ @# Update the index, so diff-index won't fail in case the pdf has been created.
&& rm -f ../ltm-$(VERSION).zip ../ltm-$(VERSION).zip.asc ../ltm-$(VERSION).tar.xz ../ltm-$(VERSION).tar.xz.asc @# As the pdf creation modifies the tex files, git sometimes detects the
git archive HEAD --prefix=libtommath-$(VERSION)/ > ../libtommath-$(VERSION).tar @# modified files, but misses that it's put back to its original version.
cd .. ; tar xf libtommath-$(VERSION).tar @git update-index --refresh
MAKE=${MAKE} ${MAKE} -C ../libtommath-$(VERSION) clean manual poster docs @git diff-index --quiet HEAD -- || ( echo "FAILURE: uncommited changes or not a git" && exit 1 )
tar -c ../libtommath-$(VERSION)/* | xz -9 > ../ltm-$(VERSION).tar.xz rm -rf libtommath-$(VERSION) ltm-$(VERSION).*
find ../libtommath-$(VERSION)/ -type f -exec unix2dos -q {} \; @# files/dirs excluded from "git archive" are defined in .gitattributes
cd .. ; zip -9r ltm-$(VERSION).zip libtommath-$(VERSION) git archive --format=tar --prefix=libtommath-$(VERSION)/ HEAD | tar x
gpg -b -a ../ltm-$(VERSION).tar.xz && gpg -b -a ../ltm-$(VERSION).zip mkdir -p libtommath-$(VERSION)/doc
cp doc/bn.pdf doc/tommath.pdf doc/poster.pdf libtommath-$(VERSION)/doc/
tar -c libtommath-$(VERSION)/ | xz -6e -c - > ltm-$(VERSION).tar.xz
zip -9rq ltm-$(VERSION).zip libtommath-$(VERSION)
rm -rf libtommath-$(VERSION)
gpg -b -a ltm-$(VERSION).tar.xz
gpg -b -a ltm-$(VERSION).zip
new_file: new_file:
bash updatemakes.sh bash updatemakes.sh