chiark / gitweb /
binary heap macro and a simple test case
[disorder] / lib / Makefile.am
index 212b1ce015a0107932650f793b5f2a3f6910a941..23590e7b27136de1abbd2b623f69a005990b069e 100644 (file)
@@ -85,7 +85,11 @@ test_SOURCES=test.c
 test_LDADD=libdisorder.a $(LIBPCRE) $(LIBICONV)
 test_DEPENDENCIES=libdisorder.a
 
-check: test
+check: test #test.i
        ./test
 
+%.i: %.c
+       $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -c $< > $@.new
+       mv $@.new $@
+
 CLEANFILES=definitions.h