summaryrefslogtreecommitdiff
path: root/etc/etc.i386/Makefile.inc
blob: 197237e4223d241f9f3809d1429aa7c0addb19c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
#	etc.i386/Makefile.inc -- i386-specific etc Makefile targets
#
#	$Id: Makefile.inc,v 1.2 1995/11/18 15:44:24 deraadt Exp $

.ifdef DESTDIR
snap_md: bsd.adp bsd.other
#snap_md: kcadp.fs kcother.fs

bsd.adp:
	cd ${.CURDIR}/../sys/arch/i386/conf && config GENERICADP
	cd ${.CURDIR}/../sys/arch/i386/compile/GENERICADP && \
	    make clean && make depend && make
	cp ${.CURDIR}/../sys/arch/i386/compile/GENERICADP/bsd \
	    ${DESTDIR}/snapshot/bsd.adp

bsd.other:
	cd ${.CURDIR}/../sys/arch/i386/conf && config GENERICOTHER
	cd ${.CURDIR}/../sys/arch/i386/compile/GENERICOTHER && \
	    make clean && make depend && make
	cp ${.CURDIR}/../sys/arch/i386/compile/GENERICOTHER/bsd \
	    ${DESTDIR}/snapshot/bsd.other

kcadp.fs:
	make -f ${.CURDIR}/etc.i386/Makefile.kc \
	    IMAGE=${DESTDIR}/snapshot/kcadp.fs \
	    KERNEL=${DESTDIR}/snapshot/bsd.adp || \
	make -f ${.CURDIR}/etc.i386/Makefile.kc \
	    IMAGE=${DESTDIR}/snapshot/kcadp.fs unconfig

kcother.fs:
	make -f ${.CURDIR}/etc.i386/Makefile.kc \
	    IMAGE=${DESTDIR}/snapshot/kcother.fs \
	    KERNEL=${DESTDIR}/snapshot/bsd.other || \
	make -f ${.CURDIR}/etc.i386/Makefile.kc \
	    IMAGE=${DESTDIR}/snapshot/kcother.fs unconfig

.endif	# DESTDIR check