-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (43 loc) · 1.21 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
AC_SRC = ../AppleCommander
SHK_SRC = ../ShrinkItArchive
BT_SRC = ../bastools
AS_SRC = ../applesingle
DASM_SRC = ../acdasm
JAVADOC = build/docs/javadoc
AC_DOC = ./docs/dev-notes/javadoc/AppleCommander
SHK_DOC = ./docs/dev-notes/javadoc/ShrinkItArchive
BT_DOC = ./docs/dev-notes/javadoc/bastools
AS_DOC = ./docs/dev-notes/javadoc/applesingle
DASM_DOC = ./docs/dev-notes/javadoc/acdasm
.PHONY: help javadoc
help:
@echo
@echo "Usage:"
@echo " javadoc Generate javadoc for BOTH AppleCommander and ShrinkItArchive."
@echo
javadoc:
test -d ${AC_SRC}
test -d ${SHK_SRC}
test -d ${BT_SRC}
test -d ${AS_SRC}
test -d ${DASM_SRC}
(cd ${AC_SRC}; ./gradlew javadoc)
(cd ${SHK_SRC}; ./gradlew javadoc)
(cd ${BT_SRC}; ./gradlew javadoc)
(cd ${AS_SRC}; ./gradlew javadoc)
(cd ${DASM_SRC}; ./gradlew javadoc)
rm -rf ${AC_DOC}
mkdir -p ${AC_DOC}
cp -r ${AC_SRC}/lib/ac-api/${JAVADOC}/* ${AC_DOC}
rm -rf ${SHK_DOC}
mkdir -p ${SHK_DOC}
cp -r ${SHK_SRC}/${JAVADOC}/* ${SHK_DOC}
rm -rf ${BT_DOC}
mkdir -p ${BT_DOC}
cp -r ${BT_SRC}/api/${JAVADOC}/* ${BT_DOC}
rm -rf ${AS_DOC}
mkdir -p ${AS_DOC}
cp -r ${AS_SRC}/api/${JAVADOC}/* ${AS_DOC}
rm -rf ${DASM_DOC}
mkdir -p ${DASM_DOC}
cp -r ${DASM_SRC}/api/${JAVADOC}/* ${DASM_DOC}