add packing
This commit is contained in:
12
Makefile
12
Makefile
@@ -4,13 +4,16 @@ SHARED_FILES := stallman.webp stallman_2024.webp favicon.ico \
|
|||||||
word_cloud_cz.png word_cloud_en.png background.jpg \
|
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 \
|
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 \
|
styles.css icons.css \
|
||||||
countdown.js theme.js lang.js \
|
countdown.js theme.js lang.js
|
||||||
jetbrains_mono.woff2
|
STATIC_ASSETS := jetbrains_mono.woff2
|
||||||
SEARCH_REPLACE := lib/search_and_replace/target/release/search_and_replace
|
SEARCH_REPLACE := lib/search_and_replace/target/release/search_and_replace
|
||||||
COMPONENTS := head.html header.html nav.html footer.html
|
COMPONENTS := head.html header.html nav.html footer.html
|
||||||
|
|
||||||
.PHONY: build
|
.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
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@@ -80,3 +83,6 @@ dst/favicon.ico: images/favicon.ico
|
|||||||
dst/%.woff2: fonts/%.woff2
|
dst/%.woff2: fonts/%.woff2
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
ln -f $< $@
|
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
|
||||||
|
Reference in New Issue
Block a user