Adding upstream version 0.5.6.
[debian/lxappearance.git] / data / ui / Makefile.am
index 0ded480..559bc78 100644 (file)
@@ -3,11 +3,16 @@ NULL=
 # GtkBuilder UI definition files
 uidir=$(datadir)/lxappearance/ui
 ui_in_files= \
-       about.ui \
-       lxappearance.ui \
+       about.glade \
+       lxappearance.glade \
        $(NULL)
-ui_DATA = $(ui_in_files)
+ui_DATA = $(ui_in_files:.glade=.ui)
+
+# Purge GtkBuilder UI files
+.glade.ui:
+       sed 's/<!--.*-->//' < $< | sed ':a;N;$$!ba;s/ *\n *</</g' > $@
 
 EXTRA_DIST= \
        $(ui_DATA) \
+       $(ui_in_files) \
        $(NULL)