mirror of
https://github.com/9001/copyparty.git
synced 2026-11-15 23:18:08 +00:00
* web/*.gif was ignored by pyproject.toml * pre-gzip js/css in dist source tarball * systemd/archlinux: safer default-config * readme: "config file example" labeling
22 lines
480 B
Makefile
22 lines
480 B
Makefile
# run me to zopfli all the static files
|
|
# which should help on really slow connections
|
|
# but then why are you using copyparty in the first place
|
|
|
|
pk: $(addsuffix .gz, $(wildcard tl/*.js *.js *.css) \
|
|
a/webdav-cfg.txt )
|
|
un: $(addsuffix .un, $(wildcard tl/*.gz *.gz a/*.gz))
|
|
|
|
tl/%.js.gz: tl/%.js
|
|
sh Makefile.s1 <$< | pigz -c11 -J 34 -I 573 >$@
|
|
pigz -dc <$@ | grep -q ^Ls
|
|
touch -r $< $@
|
|
rm $<
|
|
|
|
%.gz: %
|
|
pigz -c11 -J 34 -I 573 <$< >$@
|
|
touch -r $< $@
|
|
rm $<
|
|
|
|
%.un: %
|
|
pigz -d $<
|