diff options
author | xengineering <me@xengineering.eu> | 2023-06-17 17:18:05 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-06-17 17:36:09 +0200 |
commit | a8a6c31d862ec1d491fc76ed21c46d7e0b35b7f2 (patch) | |
tree | 04ec80b259931c3aea834b2d4490f6775980e34a /Makefile | |
parent | 99992554d071742bbc61f76d32b611568ed60f4b (diff) | |
download | limox-a8a6c31d862ec1d491fc76ed21c46d7e0b35b7f2.tar limox-a8a6c31d862ec1d491fc76ed21c46d7e0b35b7f2.tar.zst limox-a8a6c31d862ec1d491fc76ed21c46d7e0b35b7f2.zip |
Rework build of images
This allows to add svg image sources by simply adding their name to the
Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -11,8 +11,13 @@ DESKTOP_SRC=limox.desktop DESKTOP=$(BUILDDIR)/$(DESKTOP_SRC) DESKTOP_INSTALL=$(INSTALLATION)/share/applications/$(DESKTOP_SRC) +IMG_NAMES=session +IMG_DIR=$(BUILDDIR)/img +IMGS=$(foreach wrd,$(IMG_NAMES),$(IMG_DIR)/$(wrd).pdf) -all: $(LIMOX) $(DESKTOP) tests + + +all: $(LIMOX) $(DESKTOP) tests $(IMGS) $(BUILDDIR): mkdir $@ @@ -23,8 +28,14 @@ $(LIMOX): $(BUILDDIR) tests $(DESKTOP): $(BUILDDIR) cp $(DESKTOP_SRC) $@ +$(IMG_DIR): $(BUILDDIR) + mkdir $@ + +$(IMG_DIR)/%.pdf: img/%.svg $(IMG_DIR) + inkscape -o $@ $< + -.PHONY: clean debug install tests +.PHONY: clean debug install tests imgs clean: rm -rf $(BUILDDIR) @@ -38,3 +49,5 @@ install: $(LIMOX) tests: go test $(LIMOX_GO_PACKAGE)/... + +imgs: $(IMGS) |