taler-www

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

Makefile (897B)


      1 # This file is in the public domain.
      2 
      3 include build-system/config.mk
      4 
      5 # All: build HTML pages in all languages.
      6 .PHONY: all
      7 all: translate site
      8 
      9 .PHONY: site
     10 site:
     11 	env "BASEURL=$(opt_baseurl)" ./inc/build-site
     12 	@echo "Build site       [DONE]"
     13 
     14 .PHONY: translate
     15 translate:
     16 	./inc/update-messages
     17 	@echo "Translate site  [DONE]"
     18 
     19 .PHONY: run
     20 run: all
     21 	$(browser) http://0.0.0.0:8000/en &
     22 	$(python) -m http.server --directory rendered/
     23 
     24 variant = $(opt_variant)
     25 
     26 ifndef variant
     27 $(error variant is not set)
     28 endif
     29 
     30 .PHONY: install
     31 install: all
     32 	$(mkdir) -p $(prefix)/$(variant)
     33 	$(cp) -r rendered/* $(prefix)/$(variant)/
     34 	$(cp) -r rendered/.well-known/ $(prefix)/$(variant)/
     35 
     36 .PHONY: clean
     37 clean:
     38 	$(find) . -iname '*~' -exec $(rm) {} -rf \;
     39 	$(rm) -rf __pycache__ *.pyc  *~ \.*~ \#*\#
     40 	$(rm) -rf rendered/
     41 
     42 .PHONY: submodules/update
     43 submodules/update:
     44 	$(git) submodule update --recursive --remote