summaryrefslogtreecommitdiff
path: root/glade-rules.mk
blob: fd675021d1e0711162430090f4404d0dabd6c177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# In this file you will find generic and usefull rules to

# GResource rules:
# These rules will create source and header files for any file ending with .gresource.xml
# You will have to manually load the resourse unless the file name ends with
# .static.gresource.xml in which case it will be loaded automatically

%.h: %.gresource.xml
	$(GLIB_COMPILE_RESOURCES) --manual-register --generate $< --target=$@
%.c: %.gresource.xml
	$(GLIB_COMPILE_RESOURCES) --manual-register --generate $< --target=$@

# rule for static resources
%.h: %.static.gresource.xml
	$(GLIB_COMPILE_RESOURCES) --generate $< --target=$@
%.c: %.static.gresource.xml
	$(GLIB_COMPILE_RESOURCES) --generate $< --target=$@