summaryrefslogtreecommitdiff
path: root/sys/arch/i386/apm_init/Makefile.inc
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-05-30 08:05:55 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-05-30 08:05:55 +0000
commit82c35f6b2b998e37227fb82a973592b2974583f2 (patch)
tree57c9d4600666937d3c0a5c341f05b952d4f63fb1 /sys/arch/i386/apm_init/Makefile.inc
parent71855c2ac5c3830f8dfc2771e5b4cf81e6c368b9 (diff)
Fix APM building with absolute $S path
Diffstat (limited to 'sys/arch/i386/apm_init/Makefile.inc')
-rw-r--r--sys/arch/i386/apm_init/Makefile.inc12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/arch/i386/apm_init/Makefile.inc b/sys/arch/i386/apm_init/Makefile.inc
index 715da6093c5..334e0aa608f 100644
--- a/sys/arch/i386/apm_init/Makefile.inc
+++ b/sys/arch/i386/apm_init/Makefile.inc
@@ -2,10 +2,8 @@
#
# NOTE: $S must correspond to the top of the 'sys' tree
-APMDIR= ${I386}/apm_init
-
-APMDST= lib/apm_init
-APMREL?= ../../
+APMDIR!= cd ${I386}/apm_init; pwd
+APMDST= lib/apm_init
APMINC?= ${APMDST}/apm_init.inc
APMDEPS= \
@@ -21,18 +19,16 @@ APMDEPS= \
${APMINC}: ${APMDEPS} ${APMDST}
@echo making sure the apm grappling hook is up to date...
- @(cd ${APMDST} && ${MAKE} -f ${APMREL}${APMDIR}/Makefile \
+ @(cd ${APMDST} && ${MAKE} -f ${APMDIR}/Makefile \
APMCC="${CC}" \
APMCFLAGS="${CFLAGS}" \
- APMREL="${APMREL}" \
APMDIR="${APMDIR}" apm_init.inc)
clean:: .NOTMAIN __always_make_apmlib
@echo cleaning the apm grappling hook objects
- @(cd ${APMDST} && ${MAKE} -f ${APMREL}${APMDIR}/Makefile \
+ @(cd ${APMDST} && ${MAKE} -f ${APMDIR}/Makefile \
APMCC="${CC}" \
APMCFLAGS="${CFLAGS}" \
- APMREL="${APMREL}" \
APMDIR="${APMDIR}" clean)
${APMDST} __always_make_apmlib: .NOTMAIN