BlinkenArea - GitList
Repositories
Blog
Wiki
bulb
Code
Commits
Branches
Tags
Search
Tree:
8cc6b72
Branches
Tags
master
petaflot
1.0.0
1.1.0
1.1.1
bulb
manual
Makefile
convert to pdflatex
Stefan Schuermans
commited
8cc6b72
at 2019-06-21 11:51:52
Makefile
Blame
History
Raw
NAME := bulb PAPER := a4 PHOTOS := battery_holder bulb_back bulb_front capacitor led \ microcontroller resistor switch transistor SYMBOLS := battery_holder bulb_back bulb_front capacitor led \ microcontroller resistor schematic smd_solder_done smd_solder_pads \ smd_solder_part smd_solder_start smd_solder_tin switch transistor CONVERT := convert INKSCAPE := inkscape PDFLATEX := pdflatex IMAGES := $(addsuffix .jpg,$(addprefix photos/,$(PHOTOS))) \ $(addsuffix .svg,$(addprefix symbols/,$(SYMBOLS))) IMAGES_PDF := $(addsuffix .pdf,$(addprefix photos/,$(PHOTOS))) \ $(addsuffix .pdf,$(addprefix symbols/,$(SYMBOLS))) SUFFIXES := .PHONY: all show clean .SUFFIXES: .SECONDARY: all: $(NAME).pdf clean: rm -f $(NAME).aux $(NAME).log $(NAME).out $(NAME).pdf $(IMAGES_PDF) %.pdf: %.jpg $(CONVERT) $< $@ %.pdf: %.svg $(INKSCAPE) -f $< -A $@ %.pdf: %.tex $(IMAGES_PDF) yes x | $(PDFLATEX) $< || { rm -f $@; false; } yes x | $(PDFLATEX) $< || { rm -f $@; false; }