summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0385a66..6e4cf5c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,24 @@
SHELL = /bin/sh
+-include config.mk
+
+.PHONY: all
all:
./demo/template.py build
+.PHONY: clean
clean:
rm -rf build
+
+.PHONY: install
+ifndef prefix
+.PHONY: warn-noprefix
+warn-noprefix:
+ @echo "no prefix configured, did you run ./configure?"
+ @false
+install: warn-noprefix
+else
+install: all
+ mkdir -p $(prefix)/share/taler-landing
+ cp -r build/* $(prefix)/share/taler-landing/
+endif