Author: imp
Date: Fri Dec  8 19:57:06 2017
New Revision: 326710
URL: https://svnweb.freebsd.org/changeset/base/326710

Log:
  Put the files we're copying over into a few variables and add them to
  CLEANDIRS and CLEANFILES so make clean removes any divots.
  
  Sponsored by: Netflix

Modified:
  head/stand/libsa/Makefile

Modified: head/stand/libsa/Makefile
==============================================================================
--- head/stand/libsa/Makefile   Fri Dec  8 19:57:02 2017        (r326709)
+++ head/stand/libsa/Makefile   Fri Dec  8 19:57:06 2017        (r326710)
@@ -97,10 +97,15 @@ SRCS+=      infback.c inffast.c inflate.c inftrees.c zutil.
 
 # Create a subset of includes that are safe, as well as adjusting those that 
aren't
 # The lists may drive people nuts, but they are explicitly opt-in
+FAKE_DIRS=xlocale arpa
+SAFE_INCS=a.out.h assert.h elf.h limits.h nlist.h setjmp.h stddef.h stdbool.h 
string.h strings.h time.h unistd.h uuid.h
+STAND_H_INC=ctype.h fcntl.h signal.h stdio.h stdlib.h
+OTHER_INC=stdarg.h errno.h stdint.h
+
 beforedepend:
        echo beforedepend; \
-       mkdir -p xlocale arpa; \
-       for i in a.out.h assert.h elf.h limits.h nlist.h setjmp.h stddef.h 
stdbool.h string.h strings.h time.h unistd.h uuid.h; do \
+       mkdir -p ${FAKE_DIRS}; \
+       for i in ${SAFE_INCS}; do \
                ln -sf ${SRCTOP}/include/$$i $$i; \
        done; \
        ln -sf ${SYSDIR}/${MACHINE}/include/stdarg.h stdarg.h; \
@@ -111,9 +116,11 @@ beforedepend:
        for i in _time.h _strings.h _string.h; do \
                [ -f xlocale/$$i ] || cp /dev/null xlocale/$$i; \
        done; \
-       for i in ctype.h fcntl.h signal.h stdio.h stdlib.h; do \
+       for i in ${STAND_H_INC}; do \
                ln -sf ${SASRC}/stand.h $$i; \
        done
+CLEANDIRS+=${FAKE_DIRS}
+CLEANFILES+= ${SAFE_INCS} ${STAND_H_INC} ${OTHER_INC}
 
 # io routines
 SRCS+= closeall.c dev.c ioctl.c nullfs.c stat.c \
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to