-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
46 lines (38 loc) · 887 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
KSPDIR := ${HOME}/ksp/KSP_linux
MANAGED := ${KSPDIR}/KSP_Data/Managed
GAMEDATA := ${KSPDIR}/GameData
KSGAMEDATA := ${GAMEDATA}/KerbalStats
PLUGINDIR := ${KSGAMEDATA}/Plugins
RESGEN2 := resgen2
GMCS := gmcs
GIT := git
TAR := tar
ZIP := zip
.PHONY: all clean info install release
#SUBDIRS=Assets
SUBDIRS=GameData Source
DATA := \
License.txt \
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 ${KSGAMEDATA}
cp ${DATA} ${KSGAMEDATA}
info:
@echo "KerbalStats 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