summaryrefslogtreecommitdiff
path: root/resources/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'resources/Makefile')
-rw-r--r--resources/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/Makefile b/resources/Makefile
new file mode 100644
index 0000000..c781ec6
--- /dev/null
+++ b/resources/Makefile
@@ -0,0 +1,10 @@
+INPUT_FILE = icons.xml
+GRESOURCE_FILE = icons.gresource
+INC_FILE = icons.inc
+
+all::
+ glib-compile-resources ${INPUT_FILE}
+ echo 'const gresource_icons: array of byte = (' > ${INC_FILE}
+ od -Anone -v -tx1 ${GRESOURCE_FILE} | sed 's/\([0-9a-f][0-9a-f]\)/$$\1,/g' >> ${INC_FILE}
+ truncate --size=-2 ${INC_FILE}
+ echo ');' >> ${INC_FILE}