taler-www

Main taler.net website
Log | Files | Refs | Submodules | README | LICENSE

commit 111ff970000047c63724662c9ddb037c8aedd72a
parent 2440f7e2dcc26d3569b9d8ad9fd3d3f66f987e86
Author: Andreas HABEGGER <andreas.habegger@bfh.ch>
Date:   Sun, 19 Nov 2023 22:56:24 +0100

UC: Added additional targets to have more granular build option; Better clean-up target

Diffstat:
MMakefile | 13+++++++++++--
Mbuild-system/configure.py | 3++-
2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,9 +4,17 @@ include build-system/config.mk # All: build HTML pages in all languages. .PHONY: all -all: - ./inc/update-messages +all: translate site + +.PHONY: site +site: env "BASEURL=$(opt_baseurl)" ./inc/build-site + @echo "Build site [DONE]" + +.PHONY: translate +translate: + ./inc/update-messages + @echo "Translate site [DONE]" .PHONY: run run: all @@ -27,6 +35,7 @@ install: all .PHONY: clean clean: + $(find) . -iname '*~' -exec $(rm) {} -rf \; $(rm) -rf __pycache__ *.pyc *~ \.*~ \#*\# $(rm) -rf rendered/ diff --git a/build-system/configure.py b/build-system/configure.py @@ -8,7 +8,7 @@ b.enable_prefix() b.enable_configmk() # Base URL override for the site. The default (empty string) -# will fall back to the base URL defined in www.yml. +# will fall back to the base URL defined in properties.yml. b.use(Option("baseurl", "Override base URL that the site will run on", default="", required=False)) b.use(PythonTool()) @@ -23,5 +23,6 @@ b.use(PosixTool("rm")) b.use(PosixTool("sh")) b.use(PosixTool("msgmerge")) b.use(PosixTool("git")) +b.use(PosixTool("find")) b.use(BrowserTool()) b.run()