mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2024-11-25 00:13:35 +01:00
Update figures Makefile structure
This commit is contained in:
parent
02647699df
commit
faf07ef6fd
6 changed files with 49 additions and 14 deletions
7
figures/Makefile
Normal file
7
figures/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SUBDIRS := $(subst Makefile,,$(wildcard */Makefile))
|
||||||
|
|
||||||
|
all: $(SUBDIRS)
|
||||||
|
$(SUBDIRS):
|
||||||
|
@$(MAKE) -C $@
|
||||||
|
|
||||||
|
.PHONY: all $(SUBDIRS)
|
|
@ -1,7 +1,13 @@
|
||||||
.PHONY: all dist dist-clean
|
.PHONY: all dist dist-clean
|
||||||
|
|
||||||
all: dist
|
all: dist
|
||||||
dist: sine_beacon.pdf ttl_beacon.pdf
|
dist: \
|
||||||
|
sine_beacon.pdf sine_beacon.png \
|
||||||
|
ttl_beacon.pdf ttl_beacon.png
|
||||||
|
|
||||||
|
dist-clean:
|
||||||
|
rm -v sine_beacon.*
|
||||||
|
rm -v ttl_beacon.*
|
||||||
|
|
||||||
sine_beacon.%: src/single_beacon.py
|
sine_beacon.%: src/single_beacon.py
|
||||||
$< --periods 2 --with-rates sine $@
|
$< --periods 2 --with-rates sine $@
|
||||||
|
@ -9,7 +15,3 @@ sine_beacon.%: src/single_beacon.py
|
||||||
ttl_beacon.%: src/single_beacon.py
|
ttl_beacon.%: src/single_beacon.py
|
||||||
$< --periods 2 --with-rates ttl $@
|
$< --periods 2 --with-rates ttl $@
|
||||||
|
|
||||||
|
|
||||||
dist-clean:
|
|
||||||
rm -v sine_beacon.*
|
|
||||||
rm -v ttl_beacon.*
|
|
||||||
|
|
2
figures/clocks/.gitignore
vendored
Normal file
2
figures/clocks/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*.pdf
|
||||||
|
*.png
|
18
figures/clocks/Makefile
Normal file
18
figures/clocks/Makefile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
.PHONY: all dist dist-clean
|
||||||
|
|
||||||
|
|
||||||
|
all: dist
|
||||||
|
dist: \
|
||||||
|
reference-clock.pdf reference-clock.png \
|
||||||
|
wr-clocks.pdf wr-clocks.png
|
||||||
|
|
||||||
|
dist-clean:
|
||||||
|
rm -v reference-clock.*
|
||||||
|
rm -v wr-clocks.*
|
||||||
|
|
||||||
|
|
||||||
|
reference-clock.%: src/reference-clock.py
|
||||||
|
$< $@
|
||||||
|
|
||||||
|
wr-clocks.%: src/wr-clocks.py
|
||||||
|
$< $@
|
7
figures/grand/Makefile
Normal file
7
figures/grand/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SUBDIRS := $(subst Makefile,,$(wildcard */Makefile))
|
||||||
|
|
||||||
|
all: $(SUBDIRS)
|
||||||
|
$(SUBDIRS):
|
||||||
|
@$(MAKE) -C $(@D)
|
||||||
|
|
||||||
|
.PHONY: all $(SUBDIRS)
|
|
@ -1,21 +1,20 @@
|
||||||
# vim:ft=make
|
# vim:ft=make
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
SRCDIR = $(shell pwd)/src
|
SRCDIR = ./src
|
||||||
OUTPUTDIR = $(shell pwd)
|
|
||||||
|
|
||||||
VPATH = $(SRCDIR)
|
SOURCES := $(wildcard $(SRCDIR)/*.svg)
|
||||||
|
OBJECTS := $(subst $(SRCDIR)/,,$(SOURCES))
|
||||||
SOURCES := $(patsubst ,$(SRCDIR),$(wildcard $(SRCDIR)/*.svg))
|
OBJECTS_PDF := $(patsubst %.svg,%.pdf,$(OBJECTS))
|
||||||
OBJECTS := $(patsubst %.svg,%.pdf,$(SOURCES))
|
OBJECTS_TEX := $(patsubst %.svg,%.pdf_tex,$(OBJECTS))
|
||||||
|
|
||||||
### Targets
|
### Targets
|
||||||
all: $(OBJECTS)
|
all: $(OBJECTS_PDF) $(OBJECTS_TEX)
|
||||||
|
|
||||||
%.pdf: %.svg
|
$(OBJECTS_PDF): %.pdf: $(SRCDIR)/%.svg
|
||||||
inkscape --export-area-drawing --export-pdf="${@F}" "$^"
|
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}" "$^"
|
inkscape --export-area-drawing --export-latex --export-pdf="${@F}" "$^"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue