summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNullptrderef <nullptrderef@national.shitposting.agency>2024-02-24 23:35:31 +0100
committerNullptrderef <nullptrderef@national.shitposting.agency>2024-02-24 23:35:31 +0100
commit118e6396729a1e28f215cb5b2f9ab5e55bac1f8e (patch)
tree5a79ef3c3e63b6bc04625efcb1023a217a9c7a2a /Makefile
parentd288e92cf387a11603672f99e227dbbd03d2d439 (diff)
downloadtaler-ops-www-118e6396729a1e28f215cb5b2f9ab5e55bac1f8e.tar.gz
taler-ops-www-118e6396729a1e28f215cb5b2f9ab5e55bac1f8e.tar.bz2
taler-ops-www-118e6396729a1e28f215cb5b2f9ab5e55bac1f8e.zip
parcel changes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 24 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9f94e83..4975e91 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,10 @@ include build-system/config.mk
# All: build HTML pages in all languages.
.PHONY: all
-all: build-site build-css optimize-css
+all: build-site build-css optimize-css parcel
+
+# build-unoptimized: Builds without optimizing CSS as to allow for faster testing
+build-unoptimized: build-site build-css parcel-no-optimize
build-site:
./inc/update-messages
@@ -12,11 +15,22 @@ build-site:
build-css:
./build-system/pkgmgr run build-css;
- ./build-system/pkgmgr run minify-css;
-
optimize-css:
./build-system/pkgmgr run optimize-css;
+parcel: prepare-parcel build-parcel postbuild-parcel
+parcel-no-optimize: prepare-parcel build-parcel-no-optimize postbuild-parcel
+
+prepare-parcel:
+ ./build-system/pkgmgr run prepare-parcel;
+build-parcel:
+ ./build-system/pkgmgr run build-parcel;
+build-parcel-no-optimize:
+ ./build-system/pkgmgr run build-parcel-no-optimize;
+postbuild-parcel:
+ ./build-system/pkgmgr run handle-parcel-output;
+ ./build-system/pkgmgr run cleanup-parcel;
+
.PHONY: run
run: all
$(browser) http://0.0.0.0:8000/en &
@@ -29,7 +43,13 @@ $(error variant is not set)
endif
.PHONY: install
-install: all
+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)/