-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (27 loc) · 872 Bytes
/
Copy pathmakefile
File metadata and controls
34 lines (27 loc) · 872 Bytes
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
MOD_NAME=FontSmasher
SAMPLE_PACK=FontSmasherSamplePack
MODE?=GOG
GAME_DIR=${HOME}/GOG Games/Stardew Valley/game
ifeq (${MODE}, steam)
GAME_DIR=${HOME}/.steam/steam/steamapps/common/Stardew Valley
endif
MOD_DIR=${GAME_DIR}/Mods/${MOD_NAME}
SAMPLE_DIR=${GAME_DIR}/Mods/${SAMPLE_PACK}
install: smapi
smapi:
MODE=${MODE} dotnet build /clp:NoSummary
install -m 644 LICENSE "${MOD_DIR}"
colors: docs/color-table.md
docs/color-table.md: docs/color-data.txt
./docs/generate-svgs.bash docs/svg <"$<"
awk -f docs/generate-table.awk "$<" >"$@"
samplepack:
mkdir -p "${SAMPLE_DIR}/assets"
install -m 644 "${SAMPLE_PACK}"/assets/*.png "${SAMPLE_DIR}/assets/"
install -m 644 "${SAMPLE_PACK}"/content.json "${SAMPLE_PACK}"/manifest.json "${SAMPLE_DIR}"
install -m 644 LICENSE "${SAMPLE_DIR}"
clean:
rm -rf bin obj
uninstall:
rm -rf "${MOD_DIR}"
rm -rf "${SAMPLE_DIR}"