-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
77 lines (66 loc) · 3.03 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# This file is part of the NML build framework
# NML build framework is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
# NML build framework is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with NML build framework. If not, see <http://www.gnu.org/licenses/>.
#
# Definition of the grfs
GRF_FILE := ogfx-trains.grf
MAIN_SRC_FILE := src/ogfx-trains.pnml
# Uncomment, if there are sprites which are generated in the 'gfx' block
# See Makefile_gimp for an example how to work that with gimp
# GFX_LIST_FILES := src/gfx/png_source_list
# Directory structure
SRC_DIR := src
DOC_DIR := docs
SCRIPT_DIR := scripts
LANG_DIR := lang
# Documentation files:
DOC_FILES = docs/readme.txt docs/license.txt docs/changelog.txt
# List of all files which will get shipped
# DOC_FILES = readme, changelog and license
# GRF_FILENAME = MAIN_FILENAME_SRC with the extention .grf
# Add any additional, not usual files here, too, including
# their relative path to the root of the repository
BUNDLE_FILES = $(GRF_FILE) $(DOC_FILES)
# Replacement strings in the source and in the documentation
# You may only change the values, not add new definitions
# (unless you know where to add them in other places, too)
REPLACE_TITLE := {{GRF_TITLE}}
REPLACE_GRFID := {{GRF_ID}}
REPLACE_REVISION := {{REPO_REVISION}}
REPLACE_FILENAME := {{FILENAME}}
REPLACE_MD5SUM := {{GRF_MD5}}
# general definitions (no rules!)
-include Makefile_dist
include $(SCRIPT_DIR)/Makefile_def
# target 'all'
include $(SCRIPT_DIR)/Makefile_all
ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
# target 'depend' (not implemented)
# include $(SCRIPT_DIR)/Makefile_dep
-include Makefile_gfx.dep
endif
# target nml using C preprocessor
# include $(SCRIPT_DIR)/Makefile_nml
# target nml using m4 macro processor
include $(SCRIPT_DIR)/Makefile_m4nml
# target 'gfx' which builds all needed sprites
# Only a special gfx target for gimp exists so far
include $(SCRIPT_DIR)/Makefile_gimp
# target 'lng' which builds the lang/*.lng files
include $(SCRIPT_DIR)/Makefile_lng
# target 'grf' which builds the grf from the nml
include $(SCRIPT_DIR)/Makefile_grf
# include $(SCRIPT_DIR)/Makefile_nmlnfogrf
# target 'doc' which builds the docs
include $(SCRIPT_DIR)/Makefile_doc
# target 'bundle' and bundle_xxx which builds the distribution files
# and the distribution bundles like bundle_tar, bundle_zip, ...
include $(SCRIPT_DIR)/Makefile_bundle
# target 'bundle_src which builds source bundle
include $(SCRIPT_DIR)/Makefile_bundlesrc
# target 'install' which installs the grf
include $(SCRIPT_DIR)/Makefile_install
# misc. convenience targets like 'langcheck'
-include $(SCRIPT_DIR)/Makefile_misc