1# $MirOS: src/distrib/Makefile,v 1.15 2010/01/14 11:02:02 tg Exp $
2
3.include <bsd.own.mk>
4
5REL_NO_GENERIC?=	No
6REL_NO_RAMDISK?=	No
7.if ${REL_NO_GENERIC:L} != "no"
8REL_NO_RAMDISK=		Yes
9.endif
10
11.if make(obj) || make(clean) || make(cleandir) || make(cleannobsd)
12_DESCEND=		Yes
13.else
14_DESCEND=		No
15.endif
16
17SUBDIR=
18
19.if ${_DESCEND} == "Yes" || (${REL_NO_RAMDISK:L} == "no" && !make(install))
20  SUBDIR+=		special
21.endif
22
23.if ${_DESCEND} == "Yes" || ${REL_NO_GENERIC:L} == "no"
24  SUBDIR+=		generic
25.endif
26
27.if ${_DESCEND} == "Yes" || ${REL_NO_RAMDISK:L} == "no"
28  SUBDIR+=		common
29.  if ${MACHINE} == "i386" || ${MACHINE} == "sparc"
30  SUBDIR+=		common/extra
31.  endif
32.  if ${MACHINE} == "i386"
33  SUBDIR+=		common/autosshd
34.  endif
35.  if ${_DESCEND} == "Yes"
36  SUBDIR+=		common/grml
37  SUBDIR+=		common/netboot.me
38.  endif
39.endif
40
41.if ${_DESCEND} == "Yes"
42  SUBDIR+=		baselive
43  SUBDIR+=		tools
44.endif
45
46cleannobsd: _SUBDIRUSE
47
48unconfig:
49	-cd common && ${MAKE} unconfig
50
51.include <bsd.subdir.mk>
52