summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-29 23:08:07 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-29 23:08:07 +0200
commitdaebe1981a0df80187660d5aeda497fe43bf3531 (patch)
tree30f4df9f3d6bf88c0a3b4199faccf9a30f357351 /Makefile
parent08191f980f96ae7fc943c0a7d2155a9fb643eb0b (diff)
downloadsurvey-daebe1981a0df80187660d5aeda497fe43bf3531.tar.gz
survey-daebe1981a0df80187660d5aeda497fe43bf3531.tar.bz2
survey-daebe1981a0df80187660d5aeda497fe43bf3531.zip
missing files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b5c1128
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,39 @@
+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:
+ python3 setup.py test
+
+.PHONY: clean
+clean:
+ @echo nothing to do
+
+.PHONY: dist
+dist:
+ git archive --format=tar.gz HEAD -o taler-merchant-survey.tar.gz
+
+.PHONY: pretty
+pretty:
+ yapf -r -i talersurvey/