Fix makefiles so they work without having to 'make depend'
This commit is contained in:
parent
2c0d39ad75
commit
f7411a35d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25273
@ -26,8 +26,9 @@ CFLAGS+=-D_NEW_VFSCONF
|
||||
CLEANFILES+=vers.${PROG}.c vers.${PROG}.o version.amd
|
||||
CLEANFILES+=mount.h mount_xdr.c nfs_prot.h nfs_prot_xdr.c nfs_prot_svc.c
|
||||
RPCCOM = rpcgen
|
||||
MOUNT_X= /usr/include/rpcsvc/mount.x
|
||||
NFS_PROT_X= /usr/include/rpcsvc/nfs_prot.x
|
||||
MOUNT_X= ${.DESTDIR}/usr/include/rpcsvc/mount.x
|
||||
NFS_PROT_X= ${.DESTDIR}/usr/include/rpcsvc/nfs_prot.x
|
||||
DPSRCS= nfs_prot.h
|
||||
|
||||
vers.${PROG}.c: ${SRCS:.c=.o}
|
||||
@d=${.CURDIR}/ sh ${.CURDIR}/../config/newvers.sh ${PROG} ${MACHINE} ${OS}
|
||||
@ -40,7 +41,7 @@ mount.h: ${MOUNT_X}
|
||||
mount_xdr.c: mount.h ${MOUNT_X}
|
||||
${RPCCOM} -c -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET}
|
||||
|
||||
${OBJS} beforedepend: nfs_prot.h
|
||||
beforedepend: nfs_prot.h
|
||||
|
||||
nfs_prot.h: ${NFS_PROT_X}
|
||||
${RPCCOM} -h ${NFS_PROT_X} -o ${.TARGET}
|
||||
|
@ -14,6 +14,7 @@ CFLAGS+=-DOS_HDR=\"os-bsd44.h\"
|
||||
CLEANFILES+=nfs_prot.h
|
||||
RPCCOM = rpcgen
|
||||
NFS_PROT_X= /usr/include/rpcsvc/nfs_prot.x
|
||||
DPSRCS= nfs_prot.h
|
||||
|
||||
nfs_prot.h: ${NFS_PROT_X}
|
||||
${RPCCOM} -h ${NFS_PROT_X} -o ${.TARGET}
|
||||
|
@ -10,6 +10,7 @@ MAN8= mk-amd-map.8
|
||||
CLEANFILES+=nfs_prot.h
|
||||
RPCCOM = rpcgen
|
||||
NFS_PROT_X= /usr/include/rpcsvc/nfs_prot.x
|
||||
DPSRCS= nfs_prot.h
|
||||
|
||||
nfs_prot.h: ${NFS_PROT_X}
|
||||
${RPCCOM} -h ${NFS_PROT_X} -o ${.TARGET}
|
||||
|
Loading…
Reference in New Issue
Block a user