numix-gtk-theme/Makefile

68 lines
1.6 KiB
Makefile
Raw Permalink Normal View History

SASS=sassc
SASSFLAGS=-M -t expanded
2015-08-06 20:07:58 +00:00
GLIB_COMPILE_RESOURCES=glib-compile-resources
RES_DIR=src/gtk-3.0
2015-08-06 20:07:58 +00:00
SCSS_DIR=$(RES_DIR)/scss
DIST_DIR=$(RES_DIR)/dist
RES_DIR320=src/gtk-3.20
2016-04-09 04:30:09 +00:00
SCSS_DIR320=$(RES_DIR320)/scss
DIST_DIR320=$(RES_DIR320)/dist
2015-08-06 20:49:29 +00:00
INSTALL_DIR=$(DESTDIR)/usr/share/themes/Numix
2016-10-23 01:36:07 +00:00
ROOT_DIR=${PWD}
UTILS=scripts/utils.sh
2015-08-06 20:07:58 +00:00
2015-08-06 20:26:02 +00:00
all: clean gresource
2014-10-20 08:23:51 +00:00
2014-10-20 18:51:50 +00:00
css:
mkdir $(DIST_DIR)
$(SASS) $(SASSFLAGS) $(SCSS_DIR)/gtk.scss $(DIST_DIR)/gtk.css
$(SASS) $(SASSFLAGS) $(SCSS_DIR)/gtk-dark.scss $(DIST_DIR)/gtk-dark.css
mkdir $(DIST_DIR320)
$(SASS) $(SASSFLAGS) $(SCSS_DIR320)/gtk.scss $(DIST_DIR320)/gtk.css
$(SASS) $(SASSFLAGS) $(SCSS_DIR320)/gtk-dark.scss $(DIST_DIR320)/gtk-dark.css
2015-08-06 20:07:58 +00:00
gresource: css
$(GLIB_COMPILE_RESOURCES) --sourcedir=$(RES_DIR) $(RES_DIR)/gtk.gresource.xml
2016-04-09 04:30:09 +00:00
$(GLIB_COMPILE_RESOURCES) --sourcedir=$(RES_DIR320) $(RES_DIR320)/gtk.gresource.xml
2014-10-20 08:23:51 +00:00
2015-08-06 20:26:02 +00:00
watch: clean
2015-08-06 20:07:58 +00:00
while true; do \
make gresource; \
inotifywait @gtk.gresource -qr -e modify -e create -e delete $(RES_DIR); \
done
2014-10-20 08:23:51 +00:00
2014-10-20 18:51:50 +00:00
clean:
rm -rf $(DIST_DIR)
2015-08-06 20:07:58 +00:00
rm -f $(RES_DIR)/gtk.gresource
2016-04-09 04:30:09 +00:00
rm -rf $(DIST_DIR320)
rm -f $(RES_DIR320)/gtk.gresource
2016-10-23 01:36:07 +00:00
rm -rf $(ROOT_DIR)/dist
2015-08-06 20:07:58 +00:00
install: all
$(UTILS) install $(INSTALL_DIR)
2014-10-20 18:51:50 +00:00
2015-08-06 20:07:58 +00:00
uninstall:
rm -rf $(INSTALL_DIR)
changes:
$(UTILS) changes
2016-10-23 01:36:07 +00:00
zip: all
mkdir $(ROOT_DIR)/dist
$(UTILS) install $(ROOT_DIR)/dist/$$(basename $(INSTALL_DIR))
cd $(ROOT_DIR)/dist && zip --symlinks -rq $$(basename $(INSTALL_DIR)) $$(basename $(INSTALL_DIR))
2016-10-23 01:36:07 +00:00
2015-08-06 20:07:58 +00:00
.PHONY: all
2014-10-20 08:23:51 +00:00
.PHONY: css
2015-08-06 20:07:58 +00:00
.PHONY: watch
.PHONY: gresource
.PHONY: clean
.PHONY: install
.PHONY: uninstall
.PHONY: changes
2015-08-06 20:07:58 +00:00
.DEFAULT_GOAL := all
2014-10-20 08:23:51 +00:00
# vim: set ts=4 sw=4 tw=0 noet :