Home | History | Annotate | Line # | Download | only in sets
Makefile revision 1.30
      1  1.30      tron #	$NetBSD: Makefile,v 1.30 2003/09/21 19:26:02 tron 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 .include <bsd.own.mk>
      9  1.15     lukem .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
     10   1.1   thorpej 
     11   1.6     lukem SETSENV=	DESTDIR=${DESTDIR:Q} \
     12   1.6     lukem 		MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
     13  1.26     lukem 		CKSUM=${TOOL_CKSUM:Q} MAKE=${MAKE:Q} MTREE=${TOOL_MTREE:Q} \
     14  1.26     lukem 		PAX=${TOOL_PAX:Q} 
     15  1.30      tron 
     16  1.30      tron print_have_gcc3:
     17  1.30      tron 	@echo ${HAVE_GCC3}
     18   1.6     lukem 
     19   1.3   thorpej print_machine: .PHONY
     20   1.3   thorpej 	@echo ${MACHINE}
     21   1.3   thorpej 
     22   1.3   thorpej print_machine_arch: .PHONY
     23   1.3   thorpej 	@echo ${MACHINE_ARCH}
     24   1.3   thorpej 
     25   1.3   thorpej print_machine_cpu: .PHONY
     26   1.3   thorpej 	@echo ${MACHINE_CPU}
     27   1.3   thorpej 
     28   1.3   thorpej print_object_fmt: .PHONY
     29   1.3   thorpej 	@echo ${OBJECT_FMT}
     30   1.3   thorpej 
     31  1.17     lukem print_toolchain_missing: .PHONY
     32  1.17     lukem 	@echo "${TOOLCHAIN_MISSING}"
     33  1.29       mrg 
     34  1.29       mrg print_use_tools_toolchain: .PHONY
     35  1.29       mrg 	@echo "${USE_TOOLS_TOOLCHAIN}"
     36   1.5      tron 
     37   1.5      tron print_x11_version: .PHONY
     38   1.5      tron .if defined(USE_XF86_4) && (${USE_XF86_4} != no)
     39   1.5      tron 	@echo 4
     40   1.5      tron .else
     41   1.5      tron 	@echo 3
     42   1.5      tron .endif
     43   1.3   thorpej 
     44   1.3   thorpej # This target has debugging value only, really.
     45   1.7     lukem makeflist: .PHONY check_DESTDIR
     46  1.25     lukem 	${SETSENV} ${HOST_SH} ${.CURDIR}/makeflist
     47   1.3   thorpej 
     48   1.1   thorpej #
     49   1.1   thorpej # SET BUILDING TARGETS
     50   1.1   thorpej #
     51   1.1   thorpej 
     52  1.27     lukem .if ${MKUNPRIVED} == "no"
     53  1.27     lukem METALOG.unpriv=
     54  1.27     lukem .else
     55  1.27     lukem METALOG.unpriv=	-M ${METALOG}
     56  1.27     lukem .endif
     57  1.27     lukem 
     58   1.1   thorpej .PRECIOUS: checkflist
     59   1.7     lukem checkflist: check_DESTDIR
     60  1.27     lukem 	${SETSENV} ${HOST_SH} ${.CURDIR}/checkflist ${METALOG.unpriv}
     61   1.4       mrg 
     62   1.7     lukem .PRECIOUS: checkflist-x11
     63   1.7     lukem checkflist-x11: check_DESTDIR
     64  1.25     lukem 	${SETSENV} ${HOST_SH} ${.CURDIR}/checkflist -x11
     65   1.1   thorpej 
     66   1.2   thorpej .PRECIOUS: maketars
     67   1.7     lukem maketars: check_DESTDIR check_RELEASEDIR
     68  1.23     veego .if defined(DESTDIR) && ${DESTDIR} != ""
     69  1.28       mrg 	${MAKE} checkflist${CHECKFLISTFLAGS}
     70  1.16     lukem .endif
     71  1.24     lukem 	mkdir -p ${RELEASEDIR}/${MACHINE}/binary/sets
     72  1.25     lukem 	${SETSENV} ${HOST_SH} ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \
     73  1.27     lukem 	    ${METALOG.unpriv} -N ${NETBSDSRCDIR}/etc \
     74  1.22     lukem 	    -t ${RELEASEDIR}/${MACHINE}/binary/sets ${MAKETARSETS}
     75   1.1   thorpej 
     76  1.25     lukem .PRECIOUS: makesrctars
     77  1.25     lukem makesrctars: check_RELEASEDIR
     78  1.25     lukem 	mkdir -p ${RELEASEDIR}/source/sets
     79  1.25     lukem 	${SETSENV} ${HOST_SH} ${.CURDIR}/makesrctars \
     80  1.25     lukem 	    ${NETBSDSRCDIR} ${RELEASEDIR}/source/sets
     81  1.25     lukem 
     82   1.2   thorpej .PRECIOUS: makesums
     83   1.7     lukem makesums: check_RELEASEDIR
     84  1.22     lukem 	${SETSENV} ${MAKESUMS} -t ${RELEASEDIR}/${MACHINE}/binary/sets
     85  1.18     lukem 
     86  1.18     lukem .PRECIOUS: installsets
     87  1.18     lukem installsets: check_DESTDIR
     88  1.18     lukem .if !defined(INSTALLDIR)
     89  1.18     lukem 	@echo "setenv INSTALLDIR before doing that!"
     90  1.18     lukem 	@false
     91  1.18     lukem .endif
     92  1.25     lukem 	${SETSENV} ${HOST_SH} ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \
     93  1.27     lukem 	    ${METALOG.unpriv} -N ${NETBSDSRCDIR}/etc \
     94  1.20     lukem 	    -i ${INSTALLDIR} ${INSTALLSETS}
     95   1.1   thorpej 
     96   1.1   thorpej #
     97   1.1   thorpej # MAIN ENTRY POINTS
     98   1.1   thorpej #
     99   1.1   thorpej 
    100  1.14  sommerfe sets: maketars .WAIT makesums
    101  1.25     lukem 	@true
    102  1.25     lukem 
    103  1.25     lukem sourcesets: makesrctars
    104   1.1   thorpej 	@true
    105   1.8     lukem 
    106   1.8     lukem .include <bsd.sys.mk>
    107