diff --git a/bin/rmail/Makefile b/bin/rmail/Makefile index a74898f853c7..421a6ffa6d8d 100644 --- a/bin/rmail/Makefile +++ b/bin/rmail/Makefile @@ -29,7 +29,7 @@ LDFLAGS+=${SENDMAIL_LDFLAGS} # following: # CFLAGS+= -DQUEUE_ONLY -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/gnu/lib/libreadline/readline/Makefile b/gnu/lib/libreadline/readline/Makefile index a16d21652a76..547f190a0ee3 100644 --- a/gnu/lib/libreadline/readline/Makefile +++ b/gnu/lib/libreadline/readline/Makefile @@ -21,7 +21,7 @@ CLEANFILES+= ${INSTALLED_HEADERS} DPSRCS+= ${INSTALLED_HEADERS} .for _h in ${INSTALLED_HEADERS} -${_h}: ${SRCDIR}/${_h} +${_h}: ${SRCDIR}/${_h} .NOMETA ln -sf ${.ALLSRC} ${.TARGET} .endfor diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile index d55b67ef4734..27f323652288 100644 --- a/gnu/lib/libstdc++/Makefile +++ b/gnu/lib/libstdc++/Makefile @@ -88,7 +88,7 @@ ATOMICITY_H= ${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h .endif .endif -atomicity.cc: ${ATOMICITY_H} +atomicity.cc: ${ATOMICITY_H} .NOMETA ln -sf ${.ALLSRC} ${.TARGET} CLEANFILES+= atomicity.cc @@ -599,7 +599,7 @@ unwind.h: ${GCCDIR}/config/arm/unwind-arm.h unwind.h: ${GCCDIR}/unwind-generic.h .endif -unwind.h: +unwind.h: .NOMETA ln -sf ${.ALLSRC} ${.TARGET} SRCS+= unwind.h @@ -624,7 +624,7 @@ CLEANFILES+= c++config.h VERSION_MAP= libstdc++.map -${VERSION_MAP}: ${SRCDIR}/config/abi/pre/gnu.ver +${VERSION_MAP}: ${SRCDIR}/config/abi/pre/gnu.ver .NOMETA ln -sf ${.ALLSRC} ${.TARGET} CLEANFILES+= ${VERSION_MAP} diff --git a/gnu/lib/libsupc++/Makefile b/gnu/lib/libsupc++/Makefile index 0531a73ae8ff..b78e9d857683 100644 --- a/gnu/lib/libsupc++/Makefile +++ b/gnu/lib/libsupc++/Makefile @@ -38,7 +38,7 @@ unwind.h: ${GCCDIR}/config/arm/unwind-arm.h unwind.h: ${GCCDIR}/unwind-generic.h .endif -unwind.h: +unwind.h: .NOMETA ln -sf ${.ALLSRC} ${.TARGET} SRCS+= unwind.h diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile index 2b293ec817bb..40dd7e25523c 100644 --- a/gnu/usr.bin/binutils/ld/Makefile +++ b/gnu/usr.bin/binutils/ld/Makefile @@ -67,8 +67,8 @@ ldemul-list.h: echo "${EMXFR}" > ${.TARGET} echo "#define EMULATION_LIST ${EMLST} 0" >> ${.TARGET} -stringify.sed: - ln -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET} +stringify.sed: ${SRCDIR}/ld/emultempl/astring.sed .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} GENDIRDEPS_FILTER.host+= Nusr.bin/yacc diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile index f45117120882..f6454535bbe2 100644 --- a/gnu/usr.bin/cc/cc_tools/Makefile +++ b/gnu/usr.bin/cc/cc_tools/Makefile @@ -346,7 +346,7 @@ gstdint.h: GENSRCS+= gstdint.h # Linked headers -gthr-default.h: ${GCCDIR}/gthr-posix.h +gthr-default.h: ${GCCDIR}/gthr-posix.h .NOMETA ln -sf ${.ALLSRC} ${.TARGET} GENSRCS+= gthr-default.h @@ -357,7 +357,7 @@ unwind.h: ${GCCDIR}/config/arm/unwind-arm.h unwind.h: ${GCCDIR}/unwind-generic.h .endif -unwind.h: +unwind.h: .NOMETA ln -sf ${.ALLSRC} ${.TARGET} GENSRCS+= unwind.h diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile index baa6fafe1310..d9b0360085e6 100644 --- a/lib/libc++/Makefile +++ b/lib/libc++/Makefile @@ -52,8 +52,8 @@ CXXRT_SRCS+= libelftc_dem_gnu3.c\ .for _S in ${CXXRT_SRCS} STATICOBJS+= cxxrt_${_S:R}.o -cxxrt_${_S}: - ln -sf ${LIBCXXRTDIR}/${_S} ${.TARGET} +cxxrt_${_S}: ${LIBCXXRTDIR}/${_S} .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .endfor WARNS= 0 diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc index c46f89890798..e25f51686bb3 100644 --- a/lib/libc/gdtoa/Makefile.inc +++ b/lib/libc/gdtoa/Makefile.inc @@ -15,6 +15,6 @@ CFLAGS+=-I${LIBC_SRCTOP}/../../contrib/gdtoa .for src in ${GDTOASRCS} MISRCS+=gdtoa_${src} CLEANFILES+=gdtoa_${src} -gdtoa_${src}: - ln -sf ${LIBC_SRCTOP}/../../contrib/gdtoa/${src} ${.TARGET} +gdtoa_${src}: ${LIBC_SRCTOP}/../../contrib/gdtoa/${src} .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .endfor diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index 2232b795bc91..b44846131f45 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -159,8 +159,8 @@ CANCELPOINTS_SRCS=sem.c sem_new.c .for src in ${CANCELPOINTS_SRCS} SRCS+=cancelpoints_${src} CLEANFILES+=cancelpoints_${src} -cancelpoints_${src}: - ln -sf ${LIBC_SRCTOP}/gen/${src} ${.TARGET} +cancelpoints_${src}: ${LIBC_SRCTOP}/gen/${src} .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .endfor SYM_MAPS+=${LIBC_SRCTOP}/gen/Symbol.map diff --git a/lib/libc/stdlib/jemalloc/Makefile.inc b/lib/libc/stdlib/jemalloc/Makefile.inc index 46006eeaad14..a04ccf25b17d 100644 --- a/lib/libc/stdlib/jemalloc/Makefile.inc +++ b/lib/libc/stdlib/jemalloc/Makefile.inc @@ -14,14 +14,14 @@ CFLAGS+=-I${LIBC_SRCTOP}/../../contrib/jemalloc/include .for src in ${JEMALLOCSRCS} MISRCS+=jemalloc_${src} CLEANFILES+=jemalloc_${src} -jemalloc_${src}: - ln -sf ${LIBC_SRCTOP}/../../contrib/jemalloc/src/${src} ${.TARGET} +jemalloc_${src}: ${LIBC_SRCTOP}/../../contrib/jemalloc/src/${src} .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .endfor MAN+=jemalloc.3 CLEANFILES+=jemalloc.3 -jemalloc.3: - ln -sf ${LIBC_SRCTOP}/../../contrib/jemalloc/doc/jemalloc.3 ${.TARGET} +jemalloc.3: ${LIBC_SRCTOP}/../../contrib/jemalloc/doc/jemalloc.3 + ln -sf ${.ALLSRC} ${.TARGET} MLINKS+= \ jemalloc.3 malloc.3 \ diff --git a/lib/libdwarf/Makefile b/lib/libdwarf/Makefile index 590aab396bf4..30e0c604ce95 100644 --- a/lib/libdwarf/Makefile +++ b/lib/libdwarf/Makefile @@ -93,9 +93,9 @@ CLEANFILES= ${GENSRCS} CLEANDIRS= sys CFLAGS+= -I. -I${SRCDIR} -I${TOP}/common -I${TOP}/libelf -sys/elf32.h sys/elf64.h sys/elf_common.h: ${.CURDIR}/../../sys/${.TARGET} +sys/elf32.h sys/elf64.h sys/elf_common.h: ${.CURDIR}/../../sys/${.TARGET} .NOMETA mkdir -p ${.OBJDIR}/sys - ln -sf ${.CURDIR}/../../sys/${.TARGET} ${.TARGET} + ln -sf ${.ALLSRC} ${.TARGET} LIBADD+= elf diff --git a/lib/libelf/Makefile b/lib/libelf/Makefile index c400204118d3..91dbea6f1d88 100644 --- a/lib/libelf/Makefile +++ b/lib/libelf/Makefile @@ -78,9 +78,9 @@ CLEANFILES= ${GENSRCS} CLEANDIRS= sys CFLAGS+= -I. -I${SRCDIR} -I${TOP}/common -sys/elf32.h sys/elf64.h sys/elf_common.h: ${.CURDIR}/../../sys/${.TARGET} +sys/elf32.h sys/elf64.h sys/elf_common.h: ${.CURDIR}/../../sys/${.TARGET} .NOMETA mkdir -p ${.OBJDIR}/sys - ln -sf ${.CURDIR}/../../sys/${.TARGET} ${.TARGET} + ln -sf ${.ALLSRC} ${.TARGET} SHLIB_MAJOR= 2 diff --git a/lib/libmilter/Makefile b/lib/libmilter/Makefile index ca9838d9bff1..81172ec5b31c 100644 --- a/lib/libmilter/Makefile +++ b/lib/libmilter/Makefile @@ -29,7 +29,7 @@ CLEANFILES+=sm_os.h WARNS?= 0 -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/lib/libpcap/Makefile b/lib/libpcap/Makefile index c36b3efed2da..cdc02287988a 100644 --- a/lib/libpcap/Makefile +++ b/lib/libpcap/Makefile @@ -126,9 +126,8 @@ version.h: ${PCAP_DISTDIR}/VERSION @rm -f $@ sed 's/.*/char pcap_version_string[] = "libpcap version &";/' ${PCAP_DISTDIR}/VERSION > $@ -tokdefs.h: grammar.h - ln -sf grammar.h tokdefs.h - +tokdefs.h: grammar.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} # # Magic to convert the man pages to something non Solarish diff --git a/lib/libsm/Makefile b/lib/libsm/Makefile index 20f54c127e6b..1ec2dc1ef3e6 100644 --- a/lib/libsm/Makefile +++ b/lib/libsm/Makefile @@ -36,7 +36,7 @@ CLEANFILES+=sm_os.h INTERNALLIB= -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/lib/libsmdb/Makefile b/lib/libsmdb/Makefile index 976282c5d69f..f1f51997244e 100644 --- a/lib/libsmdb/Makefile +++ b/lib/libsmdb/Makefile @@ -19,7 +19,7 @@ CLEANFILES+=sm_os.h INTERNALLIB= -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/lib/libsmutil/Makefile b/lib/libsmutil/Makefile index b7e5a694e4fb..e7919eab9f25 100644 --- a/lib/libsmutil/Makefile +++ b/lib/libsmutil/Makefile @@ -19,7 +19,7 @@ CLEANFILES+=sm_os.h INTERNALLIB= -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/libexec/mail.local/Makefile b/libexec/mail.local/Makefile index 018357c71c25..79844e8972dd 100644 --- a/libexec/mail.local/Makefile +++ b/libexec/mail.local/Makefile @@ -23,7 +23,7 @@ DPADD+=${SENDMAIL_DPADD} LDADD+=${SENDMAIL_LDADD} LDFLAGS+=${SENDMAIL_LDFLAGS} -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/libexec/smrsh/Makefile b/libexec/smrsh/Makefile index 7e82b22b0a02..e2e9c3b33d2a 100644 --- a/libexec/smrsh/Makefile +++ b/libexec/smrsh/Makefile @@ -22,7 +22,7 @@ DPADD+=${SENDMAIL_DPADD} LDADD+=${SENDMAIL_LDADD} LDFLAGS+=${SENDMAIL_LDFLAGS} -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/share/mk/sys.mk b/share/mk/sys.mk index ff753f44b753..68d2db3f415e 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -272,7 +272,7 @@ YFLAGS ?= -d # non-Posix rule set -.sh: +.sh: .NOMETA cp -fp ${.IMPSRC} ${.TARGET} chmod a+x ${.TARGET} diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile index 56f74c198f85..25de8c4bed9e 100644 --- a/sys/boot/i386/boot2/Makefile +++ b/sys/boot/i386/boot2/Makefile @@ -107,8 +107,8 @@ boot2.h: boot1.out .if ${MACHINE_CPUARCH} == "amd64" beforedepend boot2.s: machine CLEANFILES+= machine -machine: - ln -sf ${.CURDIR}/../../../i386/include machine +machine: ${.CURDIR}/../../../i386/include .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .endif .include diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile index a8bcb5c8b5e7..80ca5dbdb9cd 100644 --- a/usr.bin/awk/Makefile +++ b/usr.bin/awk/Makefile @@ -17,7 +17,7 @@ MLINKS= awk.1 nawk.1 CLEANFILES= maketab proctab.c ytab.h -ytab.h: awkgram.h +ytab.h: awkgram.h .NOMETA ln -sf ${.ALLSRC} ${.TARGET} proctab.c: maketab diff --git a/usr.bin/vacation/Makefile b/usr.bin/vacation/Makefile index f32e0c4c3b03..aa8e9bd47917 100644 --- a/usr.bin/vacation/Makefile +++ b/usr.bin/vacation/Makefile @@ -22,7 +22,7 @@ DPADD+=${SENDMAIL_DPADD} LDADD+=${SENDMAIL_LDADD} LDFLAGS+=${SENDMAIL_LDFLAGS} -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/usr.sbin/acpi/iasl/Makefile b/usr.sbin/acpi/iasl/Makefile index 210b31aa0428..b4385c703f42 100644 --- a/usr.sbin/acpi/iasl/Makefile +++ b/usr.sbin/acpi/iasl/Makefile @@ -95,7 +95,7 @@ aslcompiler.y: aslparser.y aslrules.y aslsupport.y asltokens.y asltypes.y aslcompilerparse.c aslcompilerparse.h: aslcompiler.y ${YACC} ${YFLAGS} -pAslCompiler -oaslcompilerparse.c ${.ALLSRC} -aslcompiler.y.h: aslcompilerparse.h +aslcompiler.y.h: aslcompilerparse.h .NOMETA ln -f ${.ALLSRC} ${.TARGET} dtparserlex.c: dtparser.l @@ -105,7 +105,7 @@ dtparserlex.c: dtparser.l dtparserparse.c dtparserparse.h: dtparser.y ${YACC} ${YFLAGS} -pDtParser -odtparserparse.c ${.ALLSRC} -dtparser.y.h: dtparserparse.h +dtparser.y.h: dtparserparse.h .NOMETA ln -f ${.ALLSRC} ${.TARGET} prparserlex.c: prparser.l @@ -115,7 +115,7 @@ prparserlex.c: prparser.l prparserparse.c prparserparse.h: prparser.y ${YACC} ${YFLAGS} -pPrParser -oprparserparse.c ${.ALLSRC} -prparser.y.h: prparserparse.h +prparser.y.h: prparserparse.h .NOMETA ln -f ${.ALLSRC} ${.TARGET} .include diff --git a/usr.sbin/editmap/Makefile b/usr.sbin/editmap/Makefile index 20d86abd92a9..23e967f6cdc7 100644 --- a/usr.sbin/editmap/Makefile +++ b/usr.sbin/editmap/Makefile @@ -23,7 +23,7 @@ DPADD+=${SENDMAIL_DPADD} LDADD+=${SENDMAIL_LDADD} LDFLAGS+=${SENDMAIL_LDFLAGS} -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/usr.sbin/mailstats/Makefile b/usr.sbin/mailstats/Makefile index a7911a272f25..3d03ff831fb3 100644 --- a/usr.sbin/mailstats/Makefile +++ b/usr.sbin/mailstats/Makefile @@ -24,7 +24,7 @@ DPADD+= ${SENDMAIL_DPADD} LDADD+= ${SENDMAIL_LDADD} LDFLAGS+= ${SENDMAIL_LDFLAGS} -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/usr.sbin/makemap/Makefile b/usr.sbin/makemap/Makefile index ceec1b3d878b..af5f742ac9b2 100644 --- a/usr.sbin/makemap/Makefile +++ b/usr.sbin/makemap/Makefile @@ -24,7 +24,7 @@ DPADD+=${SENDMAIL_DPADD} LDADD+=${SENDMAIL_LDADD} LDFLAGS+=${SENDMAIL_LDFLAGS} -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/usr.sbin/praliases/Makefile b/usr.sbin/praliases/Makefile index 6fadc1b61069..b0b3e2db223c 100644 --- a/usr.sbin/praliases/Makefile +++ b/usr.sbin/praliases/Makefile @@ -24,7 +24,7 @@ LDFLAGS+=${SENDMAIL_LDFLAGS} DPADD+= ${SENDMAIL_DPADD} LDADD+= ${SENDMAIL_LDADD} -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile index d201d91f2eb3..80ce13b94969 100644 --- a/usr.sbin/sendmail/Makefile +++ b/usr.sbin/sendmail/Makefile @@ -62,7 +62,7 @@ DPADD+=${SENDMAIL_DPADD} LDADD+=${SENDMAIL_LDADD} LDFLAGS+=${SENDMAIL_LDFLAGS} -sm_os.h: - ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h +sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA + ln -sf ${.ALLSRC} ${.TARGET} .include