diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | Makefile | 17 | ||||
-rwxr-xr-x | bootstrap | 4 | ||||
m--------- | build-system/taler-build-scripts | 0 | ||||
-rw-r--r-- | configure.py | 6 | ||||
m--------- | demo/static/web-common | 0 |
7 files changed, 32 insertions, 0 deletions
@@ -1 +1,3 @@ /build +/configure +/config.mk diff --git a/.gitmodules b/.gitmodules index b20bc28..a26e012 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,3 +3,6 @@ url = git://git.taler.net/web-common branch = master ignore = dirty +[submodule "build-system/taler-build-scripts"] + path = build-system/taler-build-scripts + url = git://git.taler.net/taler-build-scripts.git @@ -1,7 +1,24 @@ SHELL = /bin/sh +-include config.mk + +.PHONY: all all: ./demo/template.py build +.PHONY: clean clean: rm -rf build + +.PHONY: install +ifndef prefix +.PHONY: warn-noprefix +warn-noprefix: + @echo "no prefix configured, did you run ./configure?" + @false +install: warn-noprefix +else +install: all + mkdir -p $(prefix)/share/taler-landing + cp -r build/* $(prefix)/share/taler-landing/ +endif @@ -1,5 +1,8 @@ #!/bin/sh +# Bootstrap the repository. Used when the repository is checked out from git. +# When using the source tarball, running this script is not necessary. + set -eu if ! git --version >/dev/null; then @@ -8,3 +11,4 @@ if ! git --version >/dev/null; then fi git submodule update --init +ln -sf build-system/taler-build-scripts/configure ./configure diff --git a/build-system/taler-build-scripts b/build-system/taler-build-scripts new file mode 160000 +Subproject 4272384edde63ba46c5713490f5e92146187fc7 diff --git a/configure.py b/configure.py new file mode 100644 index 0000000..40000b3 --- /dev/null +++ b/configure.py @@ -0,0 +1,6 @@ +from talerbuildconfig import * + +b = BuildConfig() +b.enable_prefix() +b.enable_configmk() +b.run() diff --git a/demo/static/web-common b/demo/static/web-common -Subproject ba4a54c65786f35922616175b644f9db7897c87 +Subproject 0968eb3d4023a8a0a37f7069f162eb786a6e04d |