tMakefile: use suffixes and allow more than one document - cv - curriculum vitae
 (HTM) git clone git://src.adamsgaard.dk/cv
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit f5979c834e2498d7c360f023bdd13a5d368a7691
 (DIR) parent 95c7080d82688564651a4329ef26a471fc1a06d7
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Fri, 30 Sep 2022 07:50:31 +0200
       
       Makefile: use suffixes and allow more than one document
       
       Diffstat:
         M Makefile                            |      24 ++++++++++++++----------
       
       1 file changed, 14 insertions(+), 10 deletions(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       t@@ -1,11 +1,18 @@
       -default: cv.pdf
       +.POSIX:
        
       -upload: cv.pdf
       -        scp cv.pdf adamsgaard.dk:/var/www/domains/adamsgaard.dk/files/
       +.SUFFIXES: .tex .pdf
        
       -cv.pdf: cv.tex
       -        lualatex cv.tex
       -        lualatex cv.tex
       +PDF = \
       +        cv.pdf\
       +
       +all: ${PDF}
       +
       +upload: ${PDF}
       +        scp ${PDF} adamsgaard.dk:/var/www/domains/adamsgaard.dk/files/
       +
       +.tex.pdf:
       +        lualatex $<
       +        lualatex $<
        
        clean:
                rm -f *.pdf
       t@@ -21,7 +28,4 @@ clean:
                rm -f *.snm
                rm -f *.vrb
        
       -edit: cv.tex
       -        $(EDITOR) cv.tex
       -
       -.PHONY: default all upload clean edit
       +.PHONY: all upload clean