Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2017 19:57:06 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326710 - head/stand/libsa
Message-ID:  <201712081957.vB8Jv62p094320@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712081957.vB8Jv62p094320>