Embed glade file in executable
[fw/altos] / aoview / Makefile
index 8f9c08df1e355730155936b7b79b561cb1cfe8a5..1941b080a4026ff67a67db699d46a14b1ee2897c 100644 (file)
@@ -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/$$/"/' $< > $@