mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2024-11-22 23:13:35 +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
|
|
|