Committer: Diego Biurrun <diego@xxxxxxxxxx> Date: Wed Mar 10 17:30:43 2010 +0100 Revision: 3914 Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Add 'checkheaders' target. This target can be used to verify that headers compile standalone. Modified: M .bzrignore M Makefile.am === modified file '.bzrignore' --- .bzrignore 2010-03-05 08:24:06 +0000 +++ .bzrignore 2010-03-10 16:30:43 +0000 @@ -1,3 +1,4 @@ +*.ho *.la *.lo ./compile === modified file 'Makefile.am' --- Makefile.am 2010-03-10 16:26:53 +0000 +++ Makefile.am 2010-03-10 16:30:43 +0000 @@ -630,4 +630,11 @@ rm -f aclocal.m4 compile config.* configure depcomp install-sh rm -f ltmain.sh m4/*.m4 Makefile.in missing py-compile -.PHONY: bin deb doxygen increl olddeb rpm syncrepo +HIPL_HEADER_OBJS = $(HIPL_HEADER_LIST:.h=.ho) +CLEANFILES += $(HIPL_HEADER_OBJS) + +checkheaders: $(HIPL_HEADER_OBJS) +%.ho: %.h + $(CC) -I$(srcdir) -I$(builddir) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -o $@ $< + +.PHONY: bin checkheaders deb doxygen increl olddeb rpm syncrepo