mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2024-11-16 04:13:31 +01:00
22 lines
533 B
Makefile
22 lines
533 B
Makefile
# vim:ft=make
|
|
.PHONY: all clean
|
|
|
|
SRCDIR = ./src
|
|
|
|
SOURCES := $(wildcard $(SRCDIR)/*.svg)
|
|
OBJECTS := $(subst $(SRCDIR)/,,$(SOURCES))
|
|
OBJECTS_PDF := $(patsubst %.svg,%.pdf,$(OBJECTS))
|
|
OBJECTS_TEX := $(patsubst %.svg,%.pdf_tex,$(OBJECTS))
|
|
|
|
### Targets
|
|
all: $(OBJECTS_PDF) $(OBJECTS_TEX)
|
|
|
|
$(OBJECTS_PDF): %.pdf: $(SRCDIR)/%.svg
|
|
inkscape --export-area-drawing --export-pdf="${@F}" "$^"
|
|
|
|
$(OBJECTS_TEX): %.pdf_tex: $(SRCDIR)/%.svg
|
|
inkscape --export-area-drawing --export-latex --export-pdf="${@F}" "$^"
|
|
|
|
clean:
|
|
@rm -vf *.pdf *.pdf_tex
|
|
|