]> pere.pagekite.me Git - text-smell-og-bang-hauge.git/blobdiff - Makefile
Enkelt forord.
[text-smell-og-bang-hauge.git] / Makefile
index 693b4c4a093fd41626622ef06eac98dddf96066f..f74347ab58f6f8805fcd94a2fe3e36fc471e70ab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,11 @@
 # Dropp chapter-filene
 
 # Build book
-PDFS = SLmaster-kjemi.pdf hefte-groenn.pdf
+PDFS = SLmaster-kjemi.pdf images/cover-art-nb.pdf
 
-all: all-groenn.tex $(PDFS)
+all: $(PDFS)
+
+hefte: all-groenn.tex hefte-groenn.pdf
 
 clean:
        $(RM) *.aux *.idx *.log *.bak *~ *.maf *.mtc *.mtc0 *.toc *.blg *.bbl *.ind *.ilg *.bcf *.run.xml
@@ -19,7 +21,7 @@ clean:
 distclean: clean
        $(RM) $(PDFS)
 
-SLmaster-kjemi.pdf: Makefile SLmaster-kjemi.tex *.tex exercise/*.tex *.bib
+SLmaster-kjemi.pdf: Makefile SLmaster-kjemi.tex *.tex exercise/*.tex unfinished/*.tex *.bib
        pdflatex SLmaster-kjemi
        biber SLmaster-kjemi
        makeindex SLmaster-kjemi
@@ -39,7 +41,10 @@ hefte-groenn.pdf: Makefile hefte-groenn.tex all-groenn.tex exercise/*.tex *.bib
 .tiff.png:
        convert $^ $@
 
-.SUFFIXES: .tex .pdf .gif .png .tiff
+.svg.pdf:
+       inkscape -o $@ $^
+
+.SUFFIXES: .tex .pdf .gif .png .tiff .svg
 
 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