forked from desktopbsd/desktopbsd-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·140 lines (118 loc) · 4.87 KB
/
Makefile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#
# Copyright (c) 2009 DesktopBSD
#
# See COPYING for licence terms.
#
# DesktopBSD
# Makefile, v1.6, Monday, June 30 2014 EricTurgeon
#
# DesktopBSD makefile. Main targets are:
#
# iso: build an iso image
# img: build a loopback image
# desktopbsd: same of `iso'
#
# pkgselect: choose packages to include in the built system (interactive)
.if defined(MAKEOBJDIRPREFIX)
CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR}
.else
CANONICALOBJDIR:=/usr/obj${.CURDIR}
.endif
all: desktopbsd
desktopbsd: iso
pkgselect: obj
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} pkgselect
obj: .done_objdir
.done_objdir:
@if ! test -d ${CANONICALOBJDIR}/; then \
mkdir -p ${CANONICALOBJDIR}; \
if ! test -d ${CANONICALOBJDIR}/; then \
${ECHO} "Unable to create ${CANONICALOBJDIR}."; \
exit 1; \
fi; \
fi
@if ! test -f .done_objdir; then \
touch ${CANONICALOBJDIR}/.done_objdir; \
fi
buildworld: .done_buildworld
.done_buildworld: .done_objdir
@-rm -f ${CANONICALOBJDIR}/.tmp_buildworld
@touch ${CANONICALOBJDIR}/.tmp_buildworld
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} buildworld ${CANONICALOBJDIR}/.tmp_buildworld
@mv ${CANONICALOBJDIR}/.tmp_buildworld ${CANONICALOBJDIR}/.done_buildworld
installworld: .done_installworld
.done_installworld: .done_buildworld
@-rm -f ${CANONICALOBJDIR}/.tmp_installworld
@touch ${CANONICALOBJDIR}/.tmp_installworld
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} installworld ${CANONICALOBJDIR}/.tmp_installworld
@mv ${CANONICALOBJDIR}/.tmp_installworld ${CANONICALOBJDIR}/.done_installworld
buildkernel: .done_buildkernel
.done_buildkernel: .done_buildworld
@-rm -f ${CANONICALOBJDIR}/.tmp_buildkernel
@touch ${CANONICALOBJDIR}/.tmp_buildkernel
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} buildkernel ${CANONICALOBJDIR}/.tmp_buildkernel
@mv ${CANONICALOBJDIR}/.tmp_buildkernel ${CANONICALOBJDIR}/.done_buildkernel
installkernel: .done_installkernel
.done_installkernel: .done_buildkernel .done_installworld
@-rm -f ${CANONICALOBJDIR}/.tmp_installkernel
@touch ${CANONICALOBJDIR}/.tmp_installkernel
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} installkernel ${CANONICALOBJDIR}/.tmp_installkernel
@mv ${CANONICALOBJDIR}/.tmp_installkernel ${CANONICALOBJDIR}/.done_installkernel
pkginstall: .done_pkginstall
.done_pkginstall: .done_installworld
@-rm -f ${CANONICALOBJDIR}/.tmp_pkginstall
@touch ${CANONICALOBJDIR}/.tmp_pkginstall
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} pkginstall ${CANONICALOBJDIR}/.tmp_pkginstall
@mv ${CANONICALOBJDIR}/.tmp_pkginstall ${CANONICALOBJDIR}/.done_pkginstall
installports: .done_fbsdportsinstall
.done_fbsdportsinstall: .done_pkginstall
@-rm -f ${CANONICALOBJDIR}/.tmp_fbsdportsinstall
@touch ${CANONICALOBJDIR}/.tmp_fbsdportsinstall
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} installports ${CANONICALOBJDIR}/.tmp_fbsdportsinstall
@mv ${CANONICALOBJDIR}/.tmp_fbsdportsinstall ${CANONICALOBJDIR}/.done_fbsdportsinstall
dbsdports: .done_portsinstall
.done_portsinstall: .done_fbsdportsinstall
@-rm -f ${CANONICALOBJDIR}/.tmp_portsinstall
@touch ${CANONICALOBJDIR}/.tmp_portsinstall
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} dbsdports ${CANONICALOBJDIR}/.tmp_portsinstall
@mv ${CANONICALOBJDIR}/.tmp_portsinstall ${CANONICALOBJDIR}/.done_portsinstall
extra: .done_extra
.done_extra: .done_portsinstall
@-rm -f ${CANONICALOBJDIR}/.tmp_extra
@touch ${CANONICALOBJDIR}/.tmp_extra
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} extra ${CANONICALOBJDIR}/.tmp_extra
@mv ${CANONICALOBJDIR}/.tmp_extra ${CANONICALOBJDIR}/.done_extra
clonefs: .done_clonefs
.done_clonefs: .done_installkernel .done_pkginstall .done_extra
@-rm -f ${CANONICALOBJDIR}/.tmp_clonefs
@touch ${CANONICALOBJDIR}/.tmp_clonefs
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} clonefs ${CANONICALOBJDIR}/.tmp_clonefs
@mv ${CANONICALOBJDIR}/.tmp_clonefs ${CANONICALOBJDIR}/.done_clonefs
iso: .done_iso
.done_iso: .done_clonefs
@-rm -f ${CANONICALOBJDIR}/.tmp_iso
@touch ${CANONICALOBJDIR}/.tmp_iso
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} iso ${CANONICALOBJDIR}/.tmp_iso
@mv ${CANONICALOBJDIR}/.tmp_iso ${CANONICALOBJDIR}/.done_iso
img: .done_img
.done_img: .done_clonefs
@-rm -f ${CANONICALOBJDIR}/.tmp_img
@touch ${CANONICALOBJDIR}/.tmp_img
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} img ${CANONICALOBJDIR}/.tmp_img
@mv ${CANONICALOBJDIR}/.tmp_img ${CANONICALOBJDIR}/.done_img
clean:
@-rm -f .tmp* .done* > /dev/null 2>&1
cleandir: clean
@sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} cleandir
upgradepkg:
@-sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} upgradepkg
@-sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} cleandesktop
@-sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} createpkg
installpkg:
@-sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} installpkg
@-sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} cleandesktop
@-sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} createpkg
cleandesk:
@-sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} cleandesktop
createpkg:
@-sh ${.CURDIR}/scripts/launch.sh ${.CURDIR} createpkg