-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
48 lines (40 loc) · 920 Bytes
/
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
export MODNAME
export ZIPNAME
MODNAME := TalisarParts
ZIPNAME := ${MODNAME}
KSPDIR := ${HOME}/ksp/KSP_linux
MANAGED := ${KSPDIR}/KSP_Data/Managed
GAMEDATA := ${KSPDIR}/GameData
MODGAMEDATA := ${GAMEDATA}/TalisarParts
PLUGINDIR := ${MODGAMEDATA}/Plugins
RESGEN2 := resgen2
GMCS := gmcs
GIT := git
TAR := tar
ZIP := zip
.PHONY: all clean info
SUBDIRS=Assets GameData Source
DATA := \
README.md \
$e
all clean:
@for dir in ${SUBDIRS}; do \
make -C $$dir $@ || exit 1; \
done
install:
@for dir in ${SUBDIRS}; do \
make -C $$dir $@ || exit 1; \
done
mkdir -p ${MODGAMEDATA}
cp ${DATA} ${MODGAMEDATA}
info:
@echo "${MODNAME} Build Information"
@echo " resgen2: ${RESGEN2}"
@echo " gmcs: ${GMCS}"
@echo " git: ${GIT}"
@echo " tar: ${TAR}"
@echo " zip: ${ZIP}"
@echo " KSP Data: ${KSPDIR}"
@echo " Plugin: ${PLUGINDIR}"
release:
tools/make-release