df906d8cc4aaf7de8504b9c3e766a68616dbb7fb
Stefan Schuermans one page version of manual

Stefan Schuermans authored 5 years ago

1) NAMES := Chaosknoten ChaosknotenOnePage
Stefan Schuermans first version of manual

Stefan Schuermans authored 5 years ago

2) PAPER := a4
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

3) PHOTOS := battery_holder capacitor Chaosknoten_back Chaosknoten_front led \
4)           microcontroller resistor switch transistor
5) SYMBOLS := battery_holder capacitor Chaosknoten_back Chaosknoten_front led \
6)            microcontroller resistor schematic smd_solder_done smd_solder_pads \
7)            smd_solder_part smd_solder_start smd_solder_tin switch transistor
Stefan Schuermans first version of manual

Stefan Schuermans authored 5 years ago

8) 
9) CONVERT := convert
10) INKSCAPE := inkscape
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

11) PDFLATEX := pdflatex
Stefan Schuermans first version of manual

Stefan Schuermans authored 5 years ago

12) 
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

13) IMAGES := $(addsuffix .jpg,$(addprefix photos/,$(PHOTOS))) \
14)           $(addsuffix .svg,$(addprefix symbols/,$(SYMBOLS)))
15) IMAGES_PDF := $(addsuffix .pdf,$(addprefix photos/,$(PHOTOS))) \
16)               $(addsuffix .pdf,$(addprefix symbols/,$(SYMBOLS)))
Stefan Schuermans first version of manual

Stefan Schuermans authored 5 years ago

17) 
18) SUFFIXES :=
19) 
20) .PHONY: all show clean
21) .SUFFIXES:
22) .SECONDARY:
23) 
Stefan Schuermans one page version of manual

Stefan Schuermans authored 5 years ago

24) all: $(addsuffix .pdf,$(NAMES))
Stefan Schuermans first version of manual

Stefan Schuermans authored 5 years ago

25) 
26) clean:
Stefan Schuermans one page version of manual

Stefan Schuermans authored 5 years ago

27) 	rm -f $(foreach N,$(NAMES),$(foreach E,aux log out pdf,$N.$E))
28) 	rm -f $(IMAGES_PDF)
Stefan Schuermans first version of manual

Stefan Schuermans authored 5 years ago

29) 
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

30) %.pdf: %.jpg
Stefan Schuermans first version of manual

Stefan Schuermans authored 5 years ago

31) 	$(CONVERT) $< $@
32) 
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

33) %.pdf: %.svg
34) 	$(INKSCAPE) -f $< -A $@
Stefan Schuermans first version of manual

Stefan Schuermans authored 5 years ago

35) 
Stefan Schuermans one page version of manual

Stefan Schuermans authored 5 years ago

36) ChaosknotenOnePage.pdf: Chaosknoten.pdf
37) 
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

38) %.pdf: %.tex $(IMAGES_PDF)
39) 	yes x | $(PDFLATEX) $< || { rm -f $@; false; }
40) 	yes x | $(PDFLATEX) $< || { rm -f $@; false; }