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

23 lines
533 B
Makefile
Raw Permalink Normal View History

2022-05-31 11:35:28 +02:00
# vim:ft=make
.PHONY: all clean
2022-08-24 16:25:20 +02:00
SRCDIR = ./src
2022-05-31 11:35:28 +02:00
2022-08-24 16:25:20 +02:00
SOURCES := $(wildcard $(SRCDIR)/*.svg)
OBJECTS := $(subst $(SRCDIR)/,,$(SOURCES))
OBJECTS_PDF := $(patsubst %.svg,%.pdf,$(OBJECTS))
OBJECTS_TEX := $(patsubst %.svg,%.pdf_tex,$(OBJECTS))
2022-05-31 11:35:28 +02:00
### Targets
2022-08-24 16:25:20 +02:00
all: $(OBJECTS_PDF) $(OBJECTS_TEX)
2022-05-31 11:35:28 +02:00
2022-08-24 16:25:20 +02:00
$(OBJECTS_PDF): %.pdf: $(SRCDIR)/%.svg
2022-05-31 11:35:28 +02:00
inkscape --export-area-drawing --export-pdf="${@F}" "$^"
2022-08-24 16:25:20 +02:00
$(OBJECTS_TEX): %.pdf_tex: $(SRCDIR)/%.svg
2022-05-31 11:35:28 +02:00
inkscape --export-area-drawing --export-latex --export-pdf="${@F}" "$^"
clean:
@rm -vf *.pdf *.pdf_tex