diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-20 12:31:59 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-20 12:31:59 +0100 |
commit | d54238ed5b32ce10ea9e42ef4d8bc3feba6925b7 (patch) | |
tree | d5a3bddb8954de773c40096ea15b3660abb7f843 /Makefile.in | |
download | survey-d54238ed5b32ce10ea9e42ef4d8bc3feba6925b7.tar.gz survey-d54238ed5b32ce10ea9e42ef4d8bc3feba6925b7.tar.bz2 survey-d54238ed5b32ce10ea9e42ef4d8bc3feba6925b7.zip |
Adding Makefile/setup.py/taler-merchant-survey.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..eb34733 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,53 @@ +INSTALL = install +INSTALL_PROGRAM = $(INSTALL) +INSTALL_DATA = $(INSTALL) -m 644 +prefix = @prefix@ +srcdir = @srcdir@ + +script_templates = taler-merchant-survey frontend-survey.wsgi +templates = Makefile $(script_templates) + +edit = sed -e 's|@prefix[@]|$(prefix)|g' + +.PHONY: all +all: $(templates) + cd talersurvey/survey/static/web-common && make && cd - + +Makefile: Makefile.in + ./config.status $@ + +$(script_templates): %: Makefile %.in + rm -f $@ $@.tmp + $(edit) '$(srcdir)/$@.in' >$@.tmp + mv $@.tmp $@ + + +.PHONY: install-data +install-data: $(templates) + @$(INSTALL_DATA) -Dt $(prefix)/share/taler/ frontend-survey.wsgi + +# @test -n "$$(ls -A talerbank/app/static/web-common/)" || \ +# (echo "please check out git submodules"; exit 1) + + + +# link package under prefix to source tree +.PHONY: devinstall +devinstall: $(templates) install-data + @pip3 install -e . --install-option="--prefix=@prefix@" + + +# install into prefix +.PHONY: install +install: $(templates) install-data + @pip3 install . --install-option="--prefix=@prefix@" + @# force update when sources changed + @pip3 install . --install-option="--prefix=@prefix@" --upgrade --no-deps + cd talersurvey/survey/static/web-common && make install && cd - + +# run testcases +.PHONY: check +check: + @export TALER_CONFIG_FILE=./talersurvey/tests.conf; \ + export PYTHONPATH=@prefix@/lib/python3.5/site-packages; \ + python3 ./talersurvey/tests.py |