f30b1a4ee9668fc4d5fdab550d35b170b49ad433
Stefan Schuermans single page version of manual

Stefan Schuermans authored 5 years ago

1) NAMES := bulb bulb_one_page
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

2) PAPER := a4
3) PHOTOS := battery_holder bulb_back bulb_front capacitor led \
4)           microcontroller resistor switch transistor
5) SYMBOLS := battery_holder bulb_back bulb_front capacitor led \
6)            microcontroller resistor schematic smd_solder_done smd_solder_pads \
7)            smd_solder_part smd_solder_start smd_solder_tin switch transistor
8) 
9) CONVERT := convert
10) INKSCAPE := inkscape
11) PDFLATEX := pdflatex
12) 
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)))
17) 
18) SUFFIXES :=
Stefan Schuermans version 1.0.0

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 5 years ago

24) all: $(addsuffix .pdf,$(NAMES))
Stefan Schuermans version 1.0.0

Stefan Schuermans authored 12 years ago

25) 
26) clean:
Stefan Schuermans single 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 version 1.0.0

Stefan Schuermans authored 12 years ago

29) 
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

30) %.pdf: %.jpg
Stefan Schuermans version 1.0.0

Stefan Schuermans authored 12 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 version 1.0.0

Stefan Schuermans authored 12 years ago

35) 
Stefan Schuermans single page version of manual

Stefan Schuermans authored 5 years ago

36) bulb_one_page.pdf: bulb.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; }