-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (21 loc) · 900 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
# Config dependencies
config = mods/core/aurum/aurum_table.lua tools/config.sh
mods = mods/mapgen/aurum_villages
all: game.conf README.bbcode README.md menu screenshot.png $(mods)
# Game documentation & imaging.
menu: screenshots $(config)
tools/make_menu.sh
touch $@
screenshot.png: screenshots/$(shell bash -c '. tools/config.sh; screenshot') $(config)
ln -sfvn $< $@
touch $@
game.conf: docs/game.sh.conf $(config)
tools/make_sh_doc.sh < $< > $@
README.md: docs/README.sh.md $(config)
tools/make_sh_doc.sh < $< > $@
README.bbcode: README.md
pandoc -f gfm -t tools/pandoc_bbcode_phpbb.lua -o $@ $<
# Mods
mods/mapgen/aurum_villages: mods/mapgen/aurum_villages/schematics/ruined_hall_jungle.mts
mods/mapgen/aurum_villages/schematics/ruined_hall_jungle.mts: mods/mapgen/aurum_villages/schematics/ruined_hall.mts
tools/mts_replace.py < $< aurum_trees:drywood aurum_trees:pander > $@