libxl: prefix *.for-check with _ to mark it as a generated file.
authorIan Campbell <ian.campbell@citrix.com>
Fri, 3 Aug 2012 08:54:05 +0000 (09:54 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Aug 2012 08:54:05 +0000 (09:54 +0100)
Keeps it out of my greps etc.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
.hgignore
tools/libxl/Makefile

index a5bf51257c00d60188872c1d05bca23a2157a446..5ef6838db61fab73cf310835d910ae39b532b0cc 100644 (file)
--- a/.hgignore
+++ b/.hgignore
 ^tools/libxl/testidl\.c$
 ^tools/libxl/tmp\..*$
 ^tools/libxl/.*\.new$
-^tools/libxl/libxl\.api-for-check
+^tools/libxl/_libxl\.api-for-check
 ^tools/libvchan/vchan-node[12]$
 ^tools/libaio/src/.*\.ol$
 ^tools/libaio/src/.*\.os$
index 63a8157a6264cea936c417bc067c00e3a68dfad2..47fb1108300b2ada2a3caebe1c04ec27ab2dbad7 100644 (file)
@@ -114,10 +114,10 @@ $(LIBXL_OBJS) $(LIBXLU_OBJS) $(XL_OBJS) $(SAVE_HELPER_OBJS): $(AUTOINCS)
 genpath-target = $(call buildmakevars2file,_paths.h.tmp)
 $(eval $(genpath-target))
 
-libxl.api-ok: check-libxl-api-rules libxl.api-for-check
+libxl.api-ok: check-libxl-api-rules _libxl.api-for-check
        $(PERL) $^
 
-%.api-for-check: %.h
+_%.api-for-check: %.h
        $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$*.o) -c -E $< $(APPEND_CFLAGS) \
                -DLIBXL_EXTERNAL_CALLERS_ONLY=LIBXL_EXTERNAL_CALLERS_ONLY \
                >$@.new
@@ -210,7 +210,7 @@ install: all
 .PHONY: clean
 clean:
        $(RM) -f _*.h *.o *.so* *.a $(CLIENTS) $(DEPS)
-       $(RM) -f _*.c *.pyc _paths.*.tmp *.api-for-check
+       $(RM) -f _*.c *.pyc _paths.*.tmp _*.api-for-check
        $(RM) -f testidl.c.new testidl.c
 #      $(RM) -f $(AUTOSRCS) $(AUTOINCS)