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

24 lines
438 B
Makefile
Raw Normal View History

2022-05-31 11:35:28 +02:00
# 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