forked from Majiir/Kethane
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
38 lines (32 loc) · 883 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
KSPDIR := ${HOME}/ksp/KSP_linux
MANAGED := ${KSPDIR}/KSP_Data/Managed
GAMEDATA := ${KSPDIR}/GameData
KGAMEDATA := ${GAMEDATA}/Kethane
PLUGINDIR := ${KGAMEDATA}/Plugins
APIEXTDATA := ${PLUGINDIR}
RESGEN2 := resgen2
GMCS := gmcs
GIT := git
TAR := tar
ZIP := zip
.PHONY: all clean info install
SUBDIRS=AssetBundles Parts Plugin/Particles Plugin/Kethane
all clean:
@for dir in ${SUBDIRS}; do \
make -C $$dir $@ || exit 1; \
done
install:
mkdir -p ${KGAMEDATA}/Resources
cp Resources/Kethane.cfg ${KGAMEDATA}/Resources
@for dir in ${SUBDIRS}; do \
make -C $$dir $@ || exit 1; \
done
info:
@echo "Extraplanetary Launchpads Build Information"
@echo " resgen2: ${RESGEN2}"
@echo " gmcs: ${GMCS}"
@echo " git: ${GIT}"
@echo " tar: ${TAR}"
@echo " zip: ${ZIP}"
@echo " KSP Data: ${KSPDIR}"
@echo " Plugin: ${PLUGINDIR}"