diff options
author | ng0 <ng0@n0.is> | 2019-09-25 18:04:04 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-25 18:04:04 +0000 |
commit | 107efba7d60ff0a3d56b48661d70d5842395a836 (patch) | |
tree | a5b2d9d17bb5794fd5668be5f6734154e5d0acdd /Makefile | |
parent | eeff7dbd327d5e136ac9998b9f2e077a9e4a78a7 (diff) | |
parent | 498b14392f7f828af1a239d680da27b859f85033 (diff) | |
download | survey-107efba7d60ff0a3d56b48661d70d5842395a836.tar.gz survey-107efba7d60ff0a3d56b48661d70d5842395a836.tar.bz2 survey-107efba7d60ff0a3d56b48661d70d5842395a836.zip |
Merge branch 'master' of git.taler.net:survey
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..19de878 --- /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=talersurvey/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-survey.tar.gz + +.PHONY: pretty +pretty: + yapf -r -i talersurvey/ |