You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
518 B

4 years ago
  1. .PHONY: default clean
  2. TARGETS = $(shell find . -type f -name '*.html')
  3. TARGETS += $(shell find . -type f -name '*.asc')
  4. TARGETS += $(shell find . -type f -name '*.css')
  5. TARGETS += $(shell find . -type f -name '*.js')
  6. TARGETS += $(shell find . -type f -name '*.txt')
  7. TARGETS += $(shell find . -type f -name '*.xml')
  8. TARGETS += $(shell find . -type f -name '*.svg')
  9. TARGETS_GZ = $(patsubst %, %.gz, $(TARGETS))
  10. CC=gzip
  11. CFLAGS=-k -f -9
  12. default: $(TARGETS_GZ)
  13. %.gz : %
  14. $(CC) $(CFLAGS) $<
  15. clean:
  16. rm -f $(TARGETS_GZ)