-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (42 loc) · 1.17 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
SHELL=/bin/sh
all:
echo "Nothing to do. Try executing 'make install' instead."
build:
make build -f Library/Messages/Makefile
make build -f Library/Manuals/Makefile
install:
#
# Automation scripts' command
#
mkdir -p ${DESTDIR}/usr/bin
cp -p ${NAME}.sh ${DESTDIR}/usr/bin/${NAME}
#
# Automation scripts' library and modules
#
mkdir -p ${DESTDIR}/usr/libexec/${NAME}
cp -p Library/${NAME}*.sh ${DESTDIR}/usr/libexec/${NAME}
cp -p -r Library/Modules ${DESTDIR}/usr/libexec/${NAME}
#
# Automation scripts' documentation manuals
#
mkdir -p ${DESTDIR}/usr/share/man
make install -f Library/Manuals/Makefile
#
# Automation scripts' localization messages
#
mkdir -p ${DESTDIR}/usr/share/locale
make install -f Library/Messages/Makefile
#
# Common design models and configuration files
#
mkdir -p ${DESTDIR}/usr/share/${NAME}
cp -r -p Models ${DESTDIR}/usr/share/${NAME}
test:
#
# Automation scripts' quality assurance tests
#
IDFORGE_MODELS=${DESTDIR}/usr/share/${NAME}/Common \
IDFORGE_LIBRARY=${DESTDIR}/usr/libexec/${NAME} \
IDFORGE_MANUALS=${DESTDIR}/usr/share/man \
TEXTDOMAINDIR=${DESTDIR}/usr/share/locale \
${DESTDIR}/usr/bin/${NAME} qatest Library/QaTests