[cfe-dev] small addition to exclude list in include/clang/Makefile

Brooks Davis brooks at freebsd.org
Thu May 6 14:21:59 PDT 2010


In the FreeBSD port's version of clang we're patching in support
for our non-standard printf format extensions like we do with
gcc.  This creates .orig files one of which the install target in
tools/clang/include/clang/Makefile installs.  I patched around it by
adding *.orig to the list of excluded files.  Would you accept the
following patch to the mainline?  The list of exclusions is already
fairly long and specific to user preferences so another probably won't
hurt.

Thanks,
Brooks

--- tools/clang/include/clang/Makefile.orig
+++ tools/clang/include/clang/Makefile
@@ -10,7 +10,7 @@
 	  cd $(PROJ_SRC_ROOT)/tools/clang/include && \
 	  for  hdr in `find clang -type f '!' '(' -name '*~' \
 	      -o -name '.#*' -o -name '*.in' -o -name '*.txt' \
-	      -o -name 'Makefile' -o -name '*.td' ')' -print \
+	      -o -name 'Makefile' -o -name '*.td' -o -name '*.orig' ')' -print \
               | grep -v CVS | grep -v .svn | grep -v .dir` ; do \
 	    instdir=$(DESTDIR)`dirname "$(PROJ_includedir)/$$hdr"` ; \
 	    if test \! -d "$$instdir" ; then \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100506/2c629745/attachment.sig>


More information about the cfe-dev mailing list