Blame glade-rules.mk

Packit 1e8aac
# In this file you will find generic and usefull rules to
Packit 1e8aac
Packit 1e8aac
# GResource rules:
Packit 1e8aac
# These rules will create source and header files for any file ending with .gresource.xml
Packit 1e8aac
# You will have to manually load the resourse unless the file name ends with
Packit 1e8aac
# .static.gresource.xml in which case it will be loaded automatically
Packit 1e8aac
Packit 1e8aac
%.h: %.gresource.xml
Packit 1e8aac
	$(GLIB_COMPILE_RESOURCES) --manual-register --generate $< --target=$@
Packit 1e8aac
%.c: %.gresource.xml
Packit 1e8aac
	$(GLIB_COMPILE_RESOURCES) --manual-register --generate $< --target=$@
Packit 1e8aac
Packit 1e8aac
# rule for static resources
Packit 1e8aac
%.h: %.static.gresource.xml
Packit 1e8aac
	$(GLIB_COMPILE_RESOURCES) --generate $< --target=$@
Packit 1e8aac
%.c: %.static.gresource.xml
Packit 1e8aac
	$(GLIB_COMPILE_RESOURCES) --generate $< --target=$@