summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-12-05 14:51:56 +0000
committercgd <cgd@NetBSD.org>1993-12-05 14:51:56 +0000
commitd69671a6d5ed3c4b96ed0e4e32d0ddd813e6ddaa (patch)
tree6e8d5b163240de7ad46d221f76eb16844701226d /lib
parentf92ccee2e2541427344391e3aaa9345b4bb724a6 (diff)
Add dummy install target for machines which don't have this
Diffstat (limited to 'lib')
-rw-r--r--lib/libarch/Makefile23
1 files changed, 10 insertions, 13 deletions
diff --git a/lib/libarch/Makefile b/lib/libarch/Makefile
index b030a7e4c20..5feb4e01a8d 100644
--- a/lib/libarch/Makefile
+++ b/lib/libarch/Makefile
@@ -1,33 +1,30 @@
-# Makefile,v 1.6 1993/09/10 23:32:17 jtc Exp
+# $Id: Makefile,v 1.5 1993/12/05 14:51:56 cgd Exp $
-ARCH?=${MACHINE}
-
-.if exists (${.CURDIR}/${MACHINE}/Makefile.inc)
+.if exists(${.CURDIR}/${MACHINE})
.PATH: ${.CURDIR}/${MACHINE}
.include "${.CURDIR}/${MACHINE}/Makefile.inc"
AINC+= -I${.CURDIR}/${MACHINE}
.endif
-.if defined(ARCH) && !empty(ARCH)
-.if exists (${.CURDIR}/${ARCH}/Makefile.inc)
-.PATH: ${.CURDIR}/${ARCH}
-.include "${.CURDIR}/${ARCH}/Makefile.inc"
-AINC+= -I${.CURDIR}/${ARCH}
-.endif
+.if exists(${.CURDIR}/${MACHINE_ARCH}) && (${MACHINE} != ${MACHINE_ARCH})
+.PATH: ${.CURDIR}/${MACHINE_ARCH}
+.include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
+AINC+= -I${.CURDIR}/${MACHINE_ARCH}
.endif
OBJS+= ${ASM}
POBJS+= ${ASM:.o=.po}
CLEANFILES+= ${ASM} ${POBJS}
-.if exists (${.CURDIR}/${ARCH})
-LIB= ${ARCH}
+.if exists(${.CURDIR}/${MACHINE}) || exists(${.CURDIR}/${MACHINE_ARCH})
+LIB= ${MACHINE}
.include <bsd.lib.mk>
.else
all:
clean:
cleandir:
-obj:
depend:
+install:
+obj:
.endif