summaryrefslogtreecommitdiff
path: root/aoview/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-05-17 23:13:20 -0700
committerKeith Packard <keithp@keithp.com>2009-05-17 23:13:20 -0700
commitf301b95e87c8ec1e3b58d595a05d486bede5e0c2 (patch)
treee68e300b01cb153c99e8b56a2a63388e8aacf60a /aoview/Makefile
parent26361686d6fc63dc22d22285f0543c5c2c756fb4 (diff)
Embed glade file in executable
This eliminates install issues nicely. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'aoview/Makefile')
-rw-r--r--aoview/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/aoview/Makefile b/aoview/Makefile
index 8f9c08df..1941b080 100644
--- a/aoview/Makefile
+++ b/aoview/Makefile
@@ -30,5 +30,10 @@ $(PROG): $(OBJ)
$(OBJ): $(INC)
+aoview_main.o: aoview_glade.h
+
clean:
rm -f $(OBJ) $(PROG)
+
+aoview_glade.h: aoview.glade
+ sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/"/' $< > $@