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.

Makefile 608B

123456789101112131415161718192021222324
  1. .POSIX:
  2. SOURCES = src/base.css src/dark-colors.css src/light-colors.css
  3. RESULTS = public/default.css public/dark.css public/light.css
  4. all: $(RESULTS)
  5. clean:
  6. rm $(RESULTS)
  7. public/default.css: src/base.css src/dark-colors.css src/light-colors.css
  8. cp src/base.css $@
  9. cat src/light-colors.css >> $@
  10. echo "@media (prefers-color-scheme: dark) {" >> $@
  11. cat src/dark-colors.css >> $@
  12. echo "}" >> $@
  13. public/light.css: src/base.css src/light-colors.css
  14. cp src/base.css $@
  15. cat src/light-colors.css >> $@
  16. public/dark.css: src/base.css src/dark-colors.css
  17. cp src/base.css $@
  18. cat src/dark-colors.css >> $@