aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-08-03 09:54:05 +0100
committerIan Campbell <ian.campbell@citrix.com>2012-08-03 09:54:05 +0100
commit01580ccdb2063766ad4570ac1f16115b0f94007e (patch)
tree55d2c45bc52f385cbc54ebc6d6f7552ca4373ec5
parent6163a9386636904b95cd25e354b0c7220d3c72a7 (diff)
downloadxen-01580ccdb2063766ad4570ac1f16115b0f94007e.tar.gz
xen-01580ccdb2063766ad4570ac1f16115b0f94007e.tar.bz2
xen-01580ccdb2063766ad4570ac1f16115b0f94007e.zip
libxl: prefix *.for-check with _ to mark it as a generated file.
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>
-rw-r--r--.hgignore2
-rw-r--r--tools/libxl/Makefile6
2 files changed, 4 insertions, 4 deletions
diff --git a/.hgignore b/.hgignore
index a5bf51257c..5ef6838db6 100644
--- a/.hgignore
+++ b/.hgignore
@@ -187,7 +187,7 @@
^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$
diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
index 63a8157a62..47fb110830 100644
--- a/tools/libxl/Makefile
+++ b/tools/libxl/Makefile
@@ -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)