mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2025-05-15 04:19:13 +02:00
Update figures Makefile structure
This commit is contained in:
parent
02647699df
commit
faf07ef6fd
6 changed files with 49 additions and 14 deletions
|
@ -1,21 +1,20 @@
|
|||
# vim:ft=make
|
||||
.PHONY: all clean
|
||||
|
||||
SRCDIR = $(shell pwd)/src
|
||||
OUTPUTDIR = $(shell pwd)
|
||||
SRCDIR = ./src
|
||||
|
||||
VPATH = $(SRCDIR)
|
||||
|
||||
SOURCES := $(patsubst ,$(SRCDIR),$(wildcard $(SRCDIR)/*.svg))
|
||||
OBJECTS := $(patsubst %.svg,%.pdf,$(SOURCES))
|
||||
SOURCES := $(wildcard $(SRCDIR)/*.svg)
|
||||
OBJECTS := $(subst $(SRCDIR)/,,$(SOURCES))
|
||||
OBJECTS_PDF := $(patsubst %.svg,%.pdf,$(OBJECTS))
|
||||
OBJECTS_TEX := $(patsubst %.svg,%.pdf_tex,$(OBJECTS))
|
||||
|
||||
### Targets
|
||||
all: $(OBJECTS)
|
||||
all: $(OBJECTS_PDF) $(OBJECTS_TEX)
|
||||
|
||||
%.pdf: %.svg
|
||||
$(OBJECTS_PDF): %.pdf: $(SRCDIR)/%.svg
|
||||
inkscape --export-area-drawing --export-pdf="${@F}" "$^"
|
||||
|
||||
%.pdf_tex: %.svg
|
||||
$(OBJECTS_TEX): %.pdf_tex: $(SRCDIR)/%.svg
|
||||
inkscape --export-area-drawing --export-latex --export-pdf="${@F}" "$^"
|
||||
|
||||
clean:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue