]> git.draconx.ca Git - gob-dx.git/blobdiff - src/Makefile.in
Release 0.92.0
[gob-dx.git] / src / Makefile.in
index 2cf31408df3c27a401b8215533576162c9027339..071a0f29a86cee576ddaeca04f3aa5fddaceb299 100644 (file)
@@ -99,7 +99,7 @@ gob_LDADD =   -lm     $(GLIB_LIBS)    @LEXLIB@
 
 BUILT_SOURCES = parse.h parse.c lexer.c
 
-CLEANFILES =  $(BUILT_SOURCES) gtk-weird-button.*
+CLEANFILES =  $(BUILT_SOURCES) gtk-weird-button.* gtk-weird-button-private.h
 
 EXTRA_DIST = test.gob
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
@@ -318,7 +318,7 @@ distdir: $(DISTFILES)
              || exit 1; \
          fi; \
        done
-lexer.o: lexer.c ../config.h parse.h
+lexer.o: lexer.c ../config.h parse.h main.h
 main.o: main.c ../config.h tree.h parse.h out.h main.h
 out.o: out.c out.h
 parse.o: parse.c ../config.h tree.h main.h
@@ -419,6 +419,14 @@ test: gtk-weird-button.c gtk-weird-button.h
 gtk-weird-button.c gtk-weird-button.h: test.gob gob
        ./gob test.gob
 
+# can't depend on the header file as that would break the above rule
+# since it's just for testing, who cares
+testcpp: gtk-weird-button.cc
+       g++ -g -Wall `gtk-config --cflags` -c gtk-weird-button.cc
+
+gtk-weird-button.cc: test.gob gob
+       ./gob --for-cpp test.gob
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT: