Better fake. Fixes shell examples which had the fake-workdir path in them.

This commit is contained in:
camield 2000-04-26 14:12:14 +00:00
parent c830987cd6
commit cbe25cd2f8
2 changed files with 25 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2000/03/28 12:26:31 camield Exp $
# $OpenBSD: Makefile,v 1.8 2000/04/26 14:12:14 camield Exp $
DISTNAME= ucspi-tcp-0.88
HOMEPAGE= http://cr.yp.to/ucspi-tcp.html
@ -21,7 +21,7 @@ PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_CONFIGURE= Yes
ALL_TARGET= default WRKINST=${WRKINST}
ALL_TARGET= default
INSTALL_TARGET= setup check
FAKE= Yes
@ -30,4 +30,7 @@ pre-build:
@echo ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
@echo ${PREFIX} > ${WRKSRC}/conf-home
pre-install:
@echo ${PREFIX} > ${WRKSRC}/conf-home
.include <bsd.port.mk>

View File

@ -1,15 +1,25 @@
$OpenBSD: patch-Makefile,v 1.2 2000/03/28 12:26:31 camield Exp $
$OpenBSD: patch-Makefile,v 1.3 2000/04/26 14:12:15 camield Exp $
Needed for fake installation.
Needed for fake installation. This way the installer can easily be
rebuilt with the fake prefix, without rebuilding _everything_.
--- Makefile.orig Sat Mar 18 16:18:42 2000
+++ Makefile Tue Mar 28 14:18:23 2000
@@ -38,7 +38,7 @@
+++ Makefile Wed Apr 26 16:08:07 2000
@@ -133,7 +133,7 @@
./compile cdb_make.c
auto_home.c: \
auto-str conf-home
- ./auto-str auto_home `head -1 conf-home` > auto_home.c
+ ./auto-str auto_home ${WRKINST}`head -1 conf-home` > auto_home.c
check: \
-it instcheck
+instcheck
./instcheck
auto_home.o: \
compile auto_home.c
chkshsgr: \
@@ -526,7 +526,7 @@
./choose c trysysel select.h1 select.h2 > select.h
setup: \
-it install
+install
./install
sgetopt.o: \