Makefile (861B)
1 SASS=scss 2 SASSFLAGS=--sourcemap=none 3 GLIB_COMPILE_RESOURCES=glib-compile-resources 4 RES_DIR=gtk-3.0 5 SCSS_DIR=$(RES_DIR)/scss 6 DIST_DIR=$(RES_DIR)/dist 7 INSTALL_DIR=$(DESTDIR)/usr/share/themes/Numix 8 9 all: clean gresource 10 11 css: 12 $(SASS) --update $(SASSFLAGS) $(SCSS_DIR):$(DIST_DIR) 13 14 gresource: css 15 $(GLIB_COMPILE_RESOURCES) --sourcedir=$(RES_DIR) $(RES_DIR)/gtk.gresource.xml 16 17 watch: clean 18 while true; do \ 19 make gresource; \ 20 inotifywait @gtk.gresource -qr -e modify -e create -e delete $(RES_DIR); \ 21 done 22 23 clean: 24 rm -rf $(DIST_DIR) 25 rm -f $(RES_DIR)/gtk.gresource 26 27 install: all 28 install -d -m755 $(INSTALL_DIR) 29 30 for f in *; do cp -pr $$f $(INSTALL_DIR)/; done 31 32 uninstall: 33 rm -rf $(INSTALL_DIR) 34 35 .PHONY: all 36 .PHONY: css 37 .PHONY: watch 38 .PHONY: gresource 39 .PHONY: clean 40 .PHONY: install 41 .PHONY: uninstall 42 43 .DEFAULT_GOAL := all 44 45 # vim: set ts=4 sw=4 tw=0 noet :