diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-24 17:26:37 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2017-11-24 17:26:37 +0100 |
commit | 47bedadb4ecfd0740726bc21ecbfb25fd8802abc (patch) | |
tree | defa016e080175c39a2ddbf485dfbb78c6516e1f /Makefile.in | |
parent | a17878f47af6dd3e2d22725111527e9336b3dc3b (diff) | |
download | donations-47bedadb4ecfd0740726bc21ecbfb25fd8802abc.tar.gz donations-47bedadb4ecfd0740726bc21ecbfb25fd8802abc.tar.bz2 donations-47bedadb4ecfd0740726bc21ecbfb25fd8802abc.zip |
auto{make,conf}
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..8504506 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,52 @@ +INSTALL = install +INSTALL_PROGRAM = $(INSTALL) +INSTALL_DATA = $(INSTALL) -m 644 +prefix = @prefix@ +srcdir = @srcdir@ + +script_templates = taler-merchant-blog frontend-blog.wsgi +templates = Makefile $(script_templates) + +edit = sed -e 's|@prefix[@]|$(prefix)|g' + +.PHONY: all +all: $(templates) + cd talerblog/blog/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-blog.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 talerblog/blog/static/web-common && make install && cd - + +# run testcases +.PHONY: check +check: + @export TALER_CONFIG_FILE=@abs_srcdir@/talersurvey/tests.conf; \ + python3 talerblog/tests.py |