summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-25 19:27:38 +0000
committerng0 <ng0@n0.is>2019-09-25 19:27:38 +0000
commit6a346edfe7fad92abbf6d7f6fc2e04602eff3d10 (patch)
tree0584b8949ae7e7b382914ea9155f31a959030b73 /Makefile
parent3aeaaa760a4bc00d35b1faa0c7bde47e9a00b9b3 (diff)
parent38acb9f039fb01a7bc0aef8b93a277e919899ae9 (diff)
downloaddonations-6a346edfe7fad92abbf6d7f6fc2e04602eff3d10.tar.gz
donations-6a346edfe7fad92abbf6d7f6fc2e04602eff3d10.tar.bz2
donations-6a346edfe7fad92abbf6d7f6fc2e04602eff3d10.zip
Merge branch 'master' of git.taler.net:donations
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6622526
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,40 @@
+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=talerdonations/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-donations.tar.gz
+
+.PHONY: pretty
+pretty:
+ yapf -r -i talerdonations/