All new Makefile
parent
5ef83db45e
commit
8ef0df096f
41
Makefile
41
Makefile
|
@ -1,14 +1,45 @@
|
|||
SASS=sass
|
||||
SCSS_DIR=gtk-3.0/scss
|
||||
DIST_DIR=gtk-3.0/dist
|
||||
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
|
||||
|
||||
css:
|
||||
$(SASS) --sourcemap=none --update $(SCSS_DIR):$(DIST_DIR)
|
||||
$(SASS) --update $(SASSFLAGS) $(SCSS_DIR):$(DIST_DIR)
|
||||
|
||||
all: css
|
||||
gresource: css
|
||||
$(GLIB_COMPILE_RESOURCES) --sourcedir=$(RES_DIR) $(RES_DIR)/gtk.gresource.xml
|
||||
|
||||
watch:
|
||||
while true; do \
|
||||
make gresource; \
|
||||
inotifywait @gtk.gresource -qr -e modify -e create -e delete $(RES_DIR); \
|
||||
done
|
||||
|
||||
clean:
|
||||
rm -rf $(DIST_DIR)
|
||||
rm -f $(RES_DIR)/gtk.gresource
|
||||
|
||||
install: all
|
||||
install -d -m755 $(INSTALL_DIR)
|
||||
|
||||
for f in *; do cp -pr $$f $(INSTALL_DIR)/; done
|
||||
|
||||
uninstall:
|
||||
rm -rf $(INSTALL_DIR)
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: css
|
||||
.PHONY: watch
|
||||
.PHONY: gresource
|
||||
.PHONY: clean
|
||||
.PHONY: install
|
||||
.PHONY: uninstall
|
||||
|
||||
.DEFAULT_GOAL := all
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 noet :
|
||||
|
|
Loading…
Reference in New Issue