Makefile: "make once" runs pdflatex once; .txt only removed if
authorsebix <szebi@gmx.at>
Sat, 11 Jan 2014 17:00:24 +0000 (18:00 +0100)
committersebix <szebi@gmx.at>
Sat, 11 Jan 2014 17:00:24 +0000 (18:00 +0100)
existing (make otherwise throws an error)

src/Makefile

index 3f9f76c..b236929 100644 (file)
@@ -2,6 +2,9 @@ NOW := $(shell date)
 
 all:   pdf html md
 
 
 all:   pdf html md
 
+once:
+       pdflatex applied-crypto-hardening
+
 pdf: 
        ./update-metadata-for-gitinfo
        pdflatex applied-crypto-hardening
 pdf: 
        ./update-metadata-for-gitinfo
        pdflatex applied-crypto-hardening
@@ -46,4 +49,4 @@ clean:
                        applied-crypto-hardening.out
        rm -rf applied-crypto-hardening/
        rm -rf gitHeadInfo.gin
                        applied-crypto-hardening.out
        rm -rf applied-crypto-hardening/
        rm -rf gitHeadInfo.gin
-       rm applied-crypto-hardening.txt
+       if [ -f "applied-crypto-hardening.txt" ]; then rm "applied-crypto-hardening.txt"; fi