rm -f is as good as if [ -f ... ] ; then rm ...
[ach-master.git] / src / Makefile
index 2a1b7b7..e89c155 100644 (file)
@@ -2,12 +2,11 @@ NOW := $(shell date)
 
 all:   pdf html md
 
-%_generated.tex: %.tex
-       ./perlify.pl
+once:
+       pdflatex applied-crypto-hardening
 
 pdf: 
        ./update-metadata-for-gitinfo
-       ./perlify.pl
        pdflatex applied-crypto-hardening
        bibtex applied-crypto-hardening
        while grep -s "Rerun to get cross-references right" \
@@ -24,6 +23,11 @@ md:
        pandoc -f latex -t markdown -o applied-crypto-hardening.markdown \
             applied-crypto-hardening.tex
 
+# experimental
+txt:
+       detex applied-crypto-hardening > applied-crypto-hardening.txt
+
+
 #epub:
         # experimental
 #       ~/Library/texmf/tex/latex/tex4ebook/tex4ebook applied-crypto-hardening.tex
@@ -41,6 +45,8 @@ clean:
        rm -f applied-crypto-hardening.aux applied-crypto-hardening.bbl \
             applied-crypto-hardening.blg applied-crypto-hardening.dvi   \
             applied-crypto-hardening.log applied-crypto-hardening.pdf   \
-            applied-crypto-hardening.toc applied-crypto-hardening.markdown
+            applied-crypto-hardening.toc applied-crypto-hardening.markdown \
+                       applied-crypto-hardening.out
        rm -rf applied-crypto-hardening/
        rm -rf gitHeadInfo.gin
+       rm -f applied-crypto-hardening.txt