added MDEC_OPT for passing options to bootblock compilation.
authorAdam David <adam@@veda.is>
Wed, 15 Jun 1994 20:21:00 +0000 (20:21 +0000)
committerAdam David <adam@@veda.is>
Wed, 15 Jun 1994 20:21:00 +0000 (20:21 +0000)
It would be nice if someone who understands sys/Makefile to add similar
functionality there too :-)

Makefile

index 19e7d35..5cc4883 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 #      @(#)Makefile    5.1.1.2 (Berkeley) 5/9/91
 #
 #      @(#)Makefile    5.1.1.2 (Berkeley) 5/9/91
 #
-#      $Id: Makefile,v 1.52 1994/06/02 06:50:20 jkh Exp $
+#      $Id: Makefile,v 1.53 1994/06/09 13:10:13 ache Exp $
 #
 
 SUBDIR=
 #
 
 SUBDIR=
@@ -224,13 +224,14 @@ tools:
        cd ${CCDIR};                    make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/make;     make depend all install ${CLEANDIR} obj
 
        cd ${CCDIR};                    make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/make;     make depend all install ${CLEANDIR} obj
 
+MDEC_OPT?=
 mdec:
        @echo "--------------------------------------------------------------"
        @echo " Rebuilding ${DESTDIR}/usr/mdec"
        @echo "--------------------------------------------------------------"
        @echo
 .if ${MACHINE} == "i386"
 mdec:
        @echo "--------------------------------------------------------------"
        @echo " Rebuilding ${DESTDIR}/usr/mdec"
        @echo "--------------------------------------------------------------"
        @echo
 .if ${MACHINE} == "i386"
-       cd ${.CURDIR}/sys/i386/boot;    make depend all install ${CLEANDIR}
+       cd ${.CURDIR}/sys/i386/boot;    make ${MDEC_OPT} depend all install ${CLEANDIR}
 .if defined (DESTDIR)
        cd /usr/mdec; find . | cpio -pdamuv ${DESTDIR}/usr/mdec
 .endif
 .if defined (DESTDIR)
        cd /usr/mdec; find . | cpio -pdamuv ${DESTDIR}/usr/mdec
 .endif