8cc6b7292b5b511cc0d425130c032c6670fb535e
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

1) NAME := bulb
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 convert to pdflatex

Stefan Schuermans authored 5 years ago

24) all: $(NAME).pdf
Stefan Schuermans version 1.0.0

Stefan Schuermans authored 12 years ago

25) 
26) clean:
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

27) 	rm -f $(NAME).aux $(NAME).log $(NAME).out $(NAME).pdf $(IMAGES_PDF)
Stefan Schuermans version 1.0.0

Stefan Schuermans authored 12 years ago

28) 
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

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

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 5 years ago

32) %.pdf: %.svg
33) 	$(INKSCAPE) -f $< -A $@
Stefan Schuermans version 1.0.0

Stefan Schuermans authored 12 years ago

34) 
Stefan Schuermans convert to pdflatex

Stefan Schuermans authored 5 years ago

35) %.pdf: %.tex $(IMAGES_PDF)
36) 	yes x | $(PDFLATEX) $< || { rm -f $@; false; }
37) 	yes x | $(PDFLATEX) $< || { rm -f $@; false; }