summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-23 18:34:45 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-23 18:34:58 +0200
commit08ac2799b04a6326c26d1c22f784270f6bad7f44 (patch)
tree675f785ff0e6885293baeb7f1178658b18442160 /Makefile
parentf5b678df70394a6ecf91bb353841c0441a9e2c7a (diff)
downloadblog-08ac2799b04a6326c26d1c22f784270f6bad7f44.tar.gz
blog-08ac2799b04a6326c26d1c22f784270f6bad7f44.tar.bz2
blog-08ac2799b04a6326c26d1c22f784270f6bad7f44.zip
make build system faster and saner
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e2a4bfb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+install_global=false
+-include config.mk
+
+.PHONY: all
+all:
+ @echo "This is a python project, no compilation required"
+
+.PHONY: install
+
+ifeq ($(install_global), true)
+install: install-global
+else
+install: install-local
+endif
+
+.PHONY: install-global
+install-global:
+ pip3 install .
+
+.PHONY: install-local
+install-local:
+ pip3 install . --user
+
+# run testcases
+.PHONY: check
+check:
+ @export TALER_CONFIG_FILE=talerblog/tests.conf; \
+ python3 setup.py test
+
+.PHONY: clean
+clean:
+ @echo nothing to do
+
+.PHONY: dist
+dist:
+ git archive --format=tar.gz HEAD -o taler-merchant-blog.tar.gz