add packing

This commit is contained in:
2025-04-17 23:12:27 +02:00
parent 146167907d
commit 48ffefef3f

View File

@@ -4,13 +4,16 @@ SHARED_FILES := stallman.webp stallman_2024.webp favicon.ico \
word_cloud_cz.png word_cloud_en.png background.jpg \
moon.svg sun.svg narrow_light.svg narrow_dark.svg wide_light.svg wide_dark.svg lang_cz.svg lang_en.svg \
styles.css icons.css \
countdown.js theme.js lang.js \
jetbrains_mono.woff2
countdown.js theme.js lang.js
STATIC_ASSETS := jetbrains_mono.woff2
SEARCH_REPLACE := lib/search_and_replace/target/release/search_and_replace
COMPONENTS := head.html header.html nav.html footer.html
.PHONY: build
build: $(PAGES:%=dst/cz/%) $(PAGES:%=dst/en/%) $(SHARED_FILES:%=dst/%)
build: $(PAGES:%=dst/cz/%) $(PAGES:%=dst/en/%) $(SHARED_FILES:%=dst/%) $(STATIC_ASSETS:%=dst/%)
.PHONY: pack
pack: dst/libre_liberec.tar.gz
.PHONY: clean
clean:
@@ -80,3 +83,6 @@ dst/favicon.ico: images/favicon.ico
dst/%.woff2: fonts/%.woff2
@mkdir -p $(@D)
ln -f $< $@
dst/libre_liberec.tar.gz: $(PAGES:%=dst/cz/%) $(PAGES:%=dst/en/%) $(SHARED_FILES:%=dst/%)
tar --transform='s,^dst/,libre_liberec/,' -czvf $@ $^ --owner=0 --group=0