They failed if there was nothing to clean.
The test target now depends on the all target so we have something
to run tests against. They still don't like to pass in-tree,
but that is a separate issue.
Noticed by deraadt@, suggestions and improvements from geunther@ and bluhm@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.111 2020/07/01 00:08:06 afresh1 Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.112 2022/04/12 02:54:51 afresh1 Exp $
#
# Build wrapper for Perl
#
depend:
@:
-test:
- -@test -e Makefile && ${MAKE} test
+test: all
+ ${MAKE} test
clean:
- -@test -e Makefile && ${MAKE} realclean
+ -@test ! -e Makefile || ${MAKE} realclean
cleandir:
-@if [ ${.CURDIR} != ${.OBJDIR} ]; then \
rm -rf *; \
else \
- test -e Makefile && ${MAKE} distclean; \
+ test ! -e Makefile || ${MAKE} distclean; \
rm -f ${CLEANFILES}; \
fi
cd ${.CURDIR} && ${MAKE} -f Makefile.bsd-wrapper1 cleandir