2015-08-06 20:07:58 +00:00
|
|
|
SASS=scss
|
|
|
|
SASSFLAGS=--sourcemap=none
|
|
|
|
GLIB_COMPILE_RESOURCES=glib-compile-resources
|
|
|
|
RES_DIR=gtk-3.0
|
|
|
|
SCSS_DIR=$(RES_DIR)/scss
|
|
|
|
DIST_DIR=$(RES_DIR)/dist
|
|
|
|
INSTALL_DIR=$(DESTDIR)/usr/share/themes/Ozon
|
|
|
|
|
|
|
|
all: gresource
|
2014-10-20 08:23:51 +00:00
|
|
|
|
2014-10-20 18:51:50 +00:00
|
|
|
css:
|
2015-08-06 20:07:58 +00:00
|
|
|
$(SASS) --update $(SASSFLAGS) $(SCSS_DIR):$(DIST_DIR)
|
|
|
|
|
|
|
|
gresource: css
|
|
|
|
$(GLIB_COMPILE_RESOURCES) --sourcedir=$(RES_DIR) $(RES_DIR)/gtk.gresource.xml
|
2014-10-20 08:23:51 +00:00
|
|
|
|
2015-08-06 20:07:58 +00:00
|
|
|
watch:
|
|
|
|
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
|
|
|
|
|
|
|
|
install: all
|
|
|
|
install -d -m755 $(INSTALL_DIR)
|
|
|
|
|
|
|
|
for f in *; do cp -pr $$f $(INSTALL_DIR)/; done
|
2014-10-20 18:51:50 +00:00
|
|
|
|
2015-08-06 20:07:58 +00:00
|
|
|
uninstall:
|
|
|
|
rm -rf $(INSTALL_DIR)
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
|
2014-10-20 08:23:51 +00:00
|
|
|
# vim: set ts=4 sw=4 tw=0 noet :
|