diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2013-09-09 19:17:10 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2013-09-09 19:17:10 +0000 |
commit | 7e83fac579d31c829942137356a0f28128ad14e1 (patch) | |
tree | 593b45c3669574e376971eb93af65d5209df4234 | |
parent | b858ad42ca8e4a6c6baee100fa1b4f1dfa186e06 (diff) |
move the DESTDIR/RELEASEDIR check to the main target
okay matthieu@
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.52 2013/08/22 18:48:45 miod Exp $ +# $OpenBSD: Makefile,v 1.53 2013/09/09 19:17:09 espie Exp $ .include <bsd.own.mk> .include <bsd.xconf.mk> @@ -70,13 +70,15 @@ fix-appd: font-cache: cd font/alias && exec ${MAKE} -f Makefile.bsd-wrapper afterinstall +.if ! ( defined(DESTDIR) && defined(RELEASEDIR) ) +release: + @echo You must set DESTDIR and RELEASEDIR for a release.; exit 255 +.else release: release-clean release-install dist .ORDER: release-clean release-install dist +.endif release-clean: -.if ! ( defined(DESTDIR) && defined(RELEASEDIR) ) - @echo You must set DESTDIR and RELEASEDIR for a release.; exit 255 -.endif ${RM} -rf ${DESTDIR}/usr/X11R6/* ${DESTDIR}/usr/X11R6/.[a-zA-Z0-9]* ${RM} -rf ${DESTDIR}/var/cache/* ${RM} -rf ${DESTDIR}/etc/X11/* |