mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2024-12-24 14:03:32 +01:00
24 lines
438 B
Makefile
24 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
|
||
|
|