Home | History | Annotate | Line # | Download | only in sets
Makefile revision 1.1
      1  1.1  thorpej #	$NetBSD: Makefile,v 1.1 2000/03/28 00:38:06 thorpej Exp $
      2  1.1  thorpej 
      3  1.1  thorpej # The `all' target must appear before bsd.own.mk is pulled in.
      4  1.1  thorpej all:
      5  1.1  thorpej 	@echo "Please understand what you are doing, first."
      6  1.1  thorpej 	@false
      7  1.1  thorpej 
      8  1.1  thorpej #
      9  1.1  thorpej # DETERMINE WHICH CRYPTO SET TO USE
     10  1.1  thorpej #
     11  1.1  thorpej 
     12  1.1  thorpej .include <bsd.own.mk>
     13  1.1  thorpej 
     14  1.1  thorpej SRCTOP=	../..
     15  1.1  thorpej .include <bsd.crypto.mk>
     16  1.1  thorpej 
     17  1.1  thorpej .if defined(CRYPTOBASE) && (${CRYPTOBASE} != "none")
     18  1.1  thorpej CRYPTOWHICH!= basename ${CRYPTOBASE}
     19  1.1  thorpej .endif
     20  1.1  thorpej 
     21  1.1  thorpej .if defined(CRYPTOWHICH)
     22  1.1  thorpej .if (${CRYPTOWHICH} == "crypto-us")
     23  1.1  thorpej CHECKFLIST_CRYPTOARG=-secr
     24  1.1  thorpej CRYPTOSET="secr"
     25  1.1  thorpej .endif
     26  1.1  thorpej 
     27  1.1  thorpej .if (${CRYPTOWHICH} == "crypto-intl")
     28  1.1  thorpej CHECKFLIST_CRYPTOARG=-cryptint
     29  1.1  thorpej CRYPTOSET="cryptint"
     30  1.1  thorpej .endif
     31  1.1  thorpej .endif # defined(CRYPTOWHICH)
     32  1.1  thorpej 
     33  1.1  thorpej #
     34  1.1  thorpej # UTILITY TARGETS
     35  1.1  thorpej #
     36  1.1  thorpej 
     37  1.1  thorpej check_destdir: .PHONY
     38  1.1  thorpej .if !defined(DESTDIR)
     39  1.1  thorpej 	@echo "DESTDIR must be set"
     40  1.1  thorpej 	@false
     41  1.1  thorpej .else
     42  1.1  thorpej 	@true
     43  1.1  thorpej .endif
     44  1.1  thorpej 
     45  1.1  thorpej check_releasedir: .PHONY
     46  1.1  thorpej .if !defined(RELEASEDIR)
     47  1.1  thorpej 	@echo "RELEASEDIR must be set"
     48  1.1  thorpej 	@false
     49  1.1  thorpej .else
     50  1.1  thorpej 	@true
     51  1.1  thorpej .endif
     52  1.1  thorpej 
     53  1.1  thorpej #
     54  1.1  thorpej # SET BUILDING TARGETS
     55  1.1  thorpej #
     56  1.1  thorpej 
     57  1.1  thorpej .PRECIOUS: checkflist
     58  1.1  thorpej checkflist: check_destdir
     59  1.1  thorpej 	DESTDIR=${DESTDIR} sh ${.CURDIR}/checkflist ${CHECKFLIST_CRYPTOARG}
     60  1.1  thorpej 
     61  1.1  thorpej maketars_base: check_destdir check_releasedir
     62  1.1  thorpej 	sh ${.CURDIR}/maketars -d ${DESTDIR} -t ${RELEASEDIR}/binary/sets
     63  1.1  thorpej 
     64  1.1  thorpej maketars_crypto: check_destdir check_releasedir
     65  1.1  thorpej 	sh ${.CURDIR}/maketars -d ${DESTDIR} -t ${RELEASEDIR}/binary/security \
     66  1.1  thorpej 	    ${CRYPTOSET}
     67  1.1  thorpej 
     68  1.1  thorpej .PRECIOUS: maketars
     69  1.1  thorpej maketars: maketars_base
     70  1.1  thorpej .if defined(CRYPTOSET)
     71  1.1  thorpej 	@${MAKE} maketars_crypto
     72  1.1  thorpej .else
     73  1.1  thorpej 	@true
     74  1.1  thorpej .endif
     75  1.1  thorpej 
     76  1.1  thorpej makesums_base: check_releasedir
     77  1.1  thorpej 	sh ${.CURDIR}/makesums -t ${RELEASEDIR}/binary/sets
     78  1.1  thorpej 
     79  1.1  thorpej makesums_crypto: check_releasedir
     80  1.1  thorpej 	sh ${.CURDIR}/makesums -t ${RELEASEDIR}/binary/security
     81  1.1  thorpej 
     82  1.1  thorpej .PRECIOUS: makesums
     83  1.1  thorpej makesums: makesums_base
     84  1.1  thorpej .if defined(CRYPTOSET)
     85  1.1  thorpej 	@${MAKE} makesums_crypto
     86  1.1  thorpej .else
     87  1.1  thorpej 	@true
     88  1.1  thorpej .endif
     89  1.1  thorpej 
     90  1.1  thorpej #
     91  1.1  thorpej # MAIN ENTRY POINTS
     92  1.1  thorpej #
     93  1.1  thorpej 
     94  1.1  thorpej sets: maketars makesums
     95  1.1  thorpej 	@true
     96  1.1  thorpej 
     97  1.1  thorpej cryptoset: .PHONY
     98  1.1  thorpej .if defined(CRYPTOSET)
     99  1.1  thorpej 	${MAKE} maketars_crypto
    100  1.1  thorpej 	${MAKE} makesums_crypto
    101  1.1  thorpej .else
    102  1.1  thorpej 	@echo "No crypto set to make."
    103  1.1  thorpej 	@false
    104  1.1  thorpej .endif
    105