summaryrefslogtreecommitdiff
path: root/sys/arch/luna88k
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-11-05 15:48:55 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-11-05 15:48:55 +0000
commitde36c48ec442e0d3f3c7e01f7aa7afd902a9a64b (patch)
tree988468da0edddf8f191342f26b0c3976ee5844a0 /sys/arch/luna88k
parent7b1982988bf4b2e1d1d5f5ef9d2e4f2e394333b1 (diff)
Two tweaks for compile/Makefile.inc:
1) Replace '.elif !exists(${OBJDIR}/Makefile)' with just '.else'. espie pointed out, that if the file existed, make wouldn't be reading this file, so the check is superflous. Less clutter. 2) Unconditionally define the 'clean' and 'cleandir' targets, also when obj doesn't exist. This changes the behaviour of 'make clean' to be successful (doing nothing) without obj@ or obj/. ok tb millert deraadt
Diffstat (limited to 'sys/arch/luna88k')
-rw-r--r--sys/arch/luna88k/compile/Makefile.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/luna88k/compile/Makefile.inc b/sys/arch/luna88k/compile/Makefile.inc
index 1c3a21c7e8d..d9c886d0740 100644
--- a/sys/arch/luna88k/compile/Makefile.inc
+++ b/sys/arch/luna88k/compile/Makefile.inc
@@ -6,14 +6,13 @@ CONFDIR != cd ${.CURDIR}/../../conf; pwd
config:
@echo make obj required first >&2
@false
-.elif !exists(${OBJDIR}/Makefile)
+.else
.PHONY: config clean
config:
config -b ${.OBJDIR} -s ${SYSDIR} ${CONFDIR}/${.CURDIR:T}
+.endif
cleandir clean:
-.endif
-
.include <bsd.obj.mk>