]> pere.pagekite.me Git - text-smell-og-bang-hauge.git/blobdiff - Makefile
Fiks bygging av grønt hefte.
[text-smell-og-bang-hauge.git] / Makefile
index 82c2ac49b91c44ed04ac175a97a53aa9818ebfdf..0d2a135ab3efb74e84408788e632a930802979e6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,13 +18,20 @@ clean:
 distclean: clean
        $(RM) $(PDFS)
 
-SLmaster-kjemi.pdf: SLmaster-kjemi.tex *.tex exercise/*.tex *.bib
+SLmaster-kjemi.pdf: Makefile SLmaster-kjemi.tex *.tex exercise/*.tex *.bib
        pdflatex SLmaster-kjemi
        biber SLmaster-kjemi
        makeindex SLmaster-kjemi
        pdflatex SLmaster-kjemi
        pdflatex SLmaster-kjemi
 
+hefte-groenn.pdf: Makefile hefte-groenn.tex all-groenn.tex exercise/*.tex *.bib
+       pdflatex hefte-groenn
+       biber hefte-groenn
+       makeindex hefte-groenn
+       pdflatex hefte-groenn
+       pdflatex hefte-groenn
+
 .gif.png:
        convert $^ $@
 
@@ -33,5 +40,5 @@ SLmaster-kjemi.pdf: SLmaster-kjemi.tex *.tex exercise/*.tex *.bib
 
 .SUFFIXES: .tex .pdf .gif .png .tiff
 
-all-groenn.tex: *.tex exercise/*.tex
-       for m in $$(grep -rl '% category: green' *.tex exercise/ |grep '.tex$$'|sed 's/.tex$$//'); do echo "\include{$$m}"; done > all-groenn.tex.new && mv all-groenn.tex.new all-groenn.tex
+all-groenn.tex: exercise/*.tex
+       for m in $$(grep -rl '% category: green' exercise/ |grep '.tex$$'|sed 's/.tex$$//'); do echo "\include{$$m}"; done > all-groenn.tex.new && mv all-groenn.tex.new all-groenn.tex