Add Makefile for ahead of time compression
This commit is contained in:
parent
1c23c4cd9a
commit
763c2e2343
21
Makefile
Normal file
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
.PHONY: default clean
|
||||
|
||||
TARGETS = $(shell find . -type f -name '*.html')
|
||||
TARGETS += $(shell find . -type f -name '*.asc')
|
||||
TARGETS += $(shell find . -type f -name '*.css')
|
||||
TARGETS += $(shell find . -type f -name '*.js')
|
||||
TARGETS += $(shell find . -type f -name '*.txt')
|
||||
TARGETS += $(shell find . -type f -name '*.xml')
|
||||
TARGETS += $(shell find . -type f -name '*.svg')
|
||||
TARGETS_GZ = $(patsubst %, %.gz, $(TARGETS))
|
||||
|
||||
CC=gzip
|
||||
CFLAGS=-k -f -9
|
||||
|
||||
default: $(TARGETS_GZ)
|
||||
|
||||
%.gz : %
|
||||
$(CC) $(CFLAGS) $<
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS_GZ)
|
Loading…
Reference in New Issue
Block a user