blob: 57e118269c7dccd0a51f9ec8a572b5fc3b3e34d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# This file is in the public domain.
include build-system/config.mk
# All: build HTML pages in all languages.
.PHONY: all
all: build-site parcel optimize-css
# build-unoptimized: Builds without optimizing CSS as to allow for faster testing
build-unoptimized: build-site parcel-no-optimize
build-site:
./inc/update-messages
env "BASEURL=$(opt_baseurl)" ./inc/build-site
optimize-css:
./build-system/pkgmgr run optimize-css;
parcel: build-parcel postbuild-parcel
parcel-no-optimize: build-parcel-no-optimize postbuild-parcel
build-parcel:
./build-system/pkgmgr run build-parcel;
build-parcel-no-optimize:
./build-system/pkgmgr run build-parcel-no-optimize;
fix-parcel-paths:
./build-system/pkgmgr run fix-parcel-paths;
postbuild-parcel: fix-parcel-paths
.PHONY: run
run: all
$(browser) http://0.0.0.0:8000/en &
$(python) -m http.server --directory dist/
variant = $(opt_variant)
ifndef variant
$(error variant is not set)
endif
.PHONY: install
install: all install-files
# install-dev: Same functionality as install, but using build-unoptimized for faster build times
install-dev: build-unoptimized install-files
# install-files: The internal install task
install-files:
$(mkdir) -p $(prefix)/$(variant)
$(cp) -r rendered/* $(prefix)/$(variant)/
$(cp) -r rendered/.well-known/ $(prefix)/$(variant)/
$(cp) -r dist/* $(prefix)/$(variant)/
.PHONY: clean
clean:
$(rm) -rf .parcel-cache/
$(rm) -rf __pycache__ *.pyc *~ \.*~ \#*\#
$(rm) -rf rendered/
$(rm) -rf dist/
.PHONY: submodules/update
submodules/update:
$(git) submodule update --recursive --remote
|