mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2024-11-10 01:33:30 +01:00
23 lines
438 B
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
|
|
|