m-thesis-documentation/figures/grand/setup/Makefile

23 lines
438 B
Makefile

# vim:ft=make
.PHONY: all clean
SRCDIR = $(shell pwd)/src
OUTPUTDIR = $(shell pwd)
VPATH = $(SRCDIR)
SOURCES := $(patsubst ,$(SRCDIR),$(wildcard $(SRCDIR)/*.svg))
OBJECTS := $(patsubst %.svg,%.pdf,$(SOURCES))
### Targets
all: $(OBJECTS)
%.pdf: %.svg
inkscape --export-area-drawing --export-pdf="${@F}" "$^"
%.pdf_tex: %.svg
inkscape --export-area-drawing --export-latex --export-pdf="${@F}" "$^"
clean:
@rm -vf *.pdf *.pdf_tex