auditor

Public Website for an auditor
Log | Files | Refs | Submodules | README

Makefile (724B)


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