-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
82 lines (68 loc) · 2.11 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
TOP= .
include ${TOP}/Makefile.config
PROJECT= "edacious"
PROJINCLUDES= configure.lua
SUBDIR= core \
gui \
ecminfo \
transient \
generic \
macro \
sources
INCDIR= core \
generic \
macro \
sources
CFLAGS+=${AGAR_MATH_CFLAGS} ${AGAR_DEV_CFLAGS} ${AGAR_VG_CFLAGS} ${AGAR_CFLAGS}
all: all-subdir
clean: clean-subdir
cleandir: cleandir-config cleandir-subdir
depend: depend-subdir
regress: regress-subdir
install: install-includes install-subdir install-config
deinstall: deinstall-includes deinstall-subdir deinstall-config
configure: configure.in
cat configure.in | mkconfigure > configure
chmod 755 configure
cleandir-config:
rm -fR include config
rm -f Makefile.config config.log configure.lua .projfiles.out .projfiles2.out
touch Makefile.config
find . -name premake.lua -exec rm -f {} \;
release:
-${MAKE} cleandir
sh mk/dist.sh commit
install-includes:
${SUDO} ${INSTALL_INCL_DIR} ${INCLDIR}
${SUDO} ${INSTALL_INCL_DIR} ${INCLDIR}/edacious
@(cd include/edacious && for DIR in ${INCDIR} config; do \
echo "mk/install-includes.sh $$DIR ${INCLDIR}/edacious"; \
${SUDO} env \
INSTALL_INCL_DIR="${INSTALL_INCL_DIR}" \
INSTALL_INCL="${INSTALL_INCL}" \
${SH} ${SRCDIR}/mk/install-includes.sh \
$$DIR ${DESTDIR}${INCLDIR}/edacious; \
done)
deinstall-includes:
${FIND} . -type f -name '*.h' -print \
| ${AWK} '{print "${DEINSTALL_INCL} ${INCLDIR}/edacious/"$$1}' \
| ${SUDO} ${SH}
@if [ "${SRC}" != "" ]; then \
echo "${FIND} ${SRC} -type f -name '*.h' -print \
| ${AWK} '{print "${DEINSTALL_INCL} \
${INCLDIR}/edacious/"$$1}' \
| ${SUDO} ${SH}"; \
(cd ${SRC} && ${FIND} . -type f -name '*.h' -print \
| ${AWK} '{print "${DEINSTALL_INCL} \
${INCLDIR}/edacious/"$$1}' \
| ${SUDO} ${SH}); \
fi
install-config:
${SUDO} ${INSTALL_PROG} edacious-config "${BINDIR}"
deinstall-config:
${SUDO} ${DEINSTALL_PROG} "${BINDIR}/edacious-config"
.PHONY: install deinstall configure release
.PHONY: install-includes deinstall-includes
.PHONY: install-config deinstall-config
include ${TOP}/mk/build.subdir.mk
include ${TOP}/mk/build.common.mk