1
# This file contains a list of settings for this project
2
# which could moderately easily be changed locally
3
# Copy the file to Makefile.local and uncomment the
6
# REPO_NAME := My first NewGRF
7
# GRF_ID := 01 02 03 04
9
# If everything is default, you don't need the rest:
11
# comment out those dirs which are not in use
12
# Add any dirs which shall be bundled in a source release additionally
13
# to the dirs mentioned above.
16
# Documentation files:
17
# README_FILENAME_SRC := $(DOC_DIR)/readme.txt
18
# LICENSE_FILENAME_SRC := $(DOC_DIR)/license.txt
19
# CHANGELOG_FILENAME_SRC := $(DOC_DIR)/changelog.txt
21
# file extentions which indicate plain text source files,
22
# parsable by a text editor
23
# FILE_SRC_EXTENSIONS = pnfo template
25
# file extensions which indicate binary source files
26
# FILE_INC_EXTENSIONS = wav pcx
28
# Replacement strings in the source and in the documentation
29
# You may only change the values, not add new definitions
30
# (unless you know where to add them in other places, too)
31
# REPO_TITLE_DUMMY := {{GRF_TITLE}}
32
# GRF_ID_DUMMY := {{GRF_ID}}
33
# REPO_REVISION_DUMMY := {{REPO_REVISION}}
34
# OUTPUT_FILENAME_DUMMY := {{FILENAME}}
36
# List of all files which will get shipped
37
# DOC_FILES = readme, changelog and license
38
# GRF_FILENAME = MAIN_FILENAME_SRC with the extention .grf
39
# Add any additional, not usual files here, too, including
40
# their relative path to the root of the repository
41
# BUNDLE_FILES = $(MAIN_TARGET) $(DOC_FILES)
43
# CLEAN_ADD = sprites/nfo/cargos.pnfo sprites/nfo/cargo_schemes.pnfo
45
################################################################
46
# Programme definitions / search paths
47
################################################################
48
# Build parameters and programmes
50
# GRFCODEC_FLAGS = -e -p 2
55
# CC_FLAGS = -C -E - <
57
# UNIX2DOS_FLAGS ?= -q
69
# UNIX2DOS = $(shell [ `which unix2dos` ] && echo "unix2dos" || echo "cat")
75
################################################################
76
# Get the Repository revision, tags and the modified status
77
# The displayed name within OpenTTD / TTDPatch
79
# a nightly build: GRF's Name nightly-r51
80
# a release build (taged version): GRF's Name 0.1
81
################################################################
82
# REPO_TITLE := $(REPO_NAME) $(shell [ -n "$(REPO_TAGS)" ] && echo $(REPO_TAGS)$(REPO_MODIFIED) || echo nightly r$(REPO_REVISION)$(REPO_MODIFIED))
84
################################################################
85
# Rules on how to generate filenames. Usually no need to change
86
################################################################
87
# Define how the displayed name and the filename of the bundled grf shall look like:
88
# The result will either be
89
# nightly build: mynewgrf-nightly-r51
90
# a release build (tagged version): mynewgrf-0.1
91
# followed by an M, if the source repository is not a clean version.
93
# FILENAME_STUB := $(basename $(MAIN_TARGET))
94
# DIR_BASE := $(FILENAME_STUB)-
95
# VERSION_STRING := $(shell [ -n "$(REPO_TAGS)" ] && echo $(REPO_TAGS)$(REPO_MODIFIED) || echo nightly-r$(REPO_REVISION)$(REPO_MODIFIED))
96
# DIR_NAME := $(shell [ -n "$(REPO_TAGS)" ] && echo $(DIR_BASE)$(VERSION_STRING) || echo $(DIR_BASE)nightly)
97
# VERSIONED_FILENAME := $(DIR_BASE)$(VERSION_STRING)
98
# DIR_NAME_SRC := $(VERSIONED_FILENAME)-source
100
# TAR_FILENAME := $(DIR_NAME).tar
101
# BZIP_FILENAME := $(TAR_FILENAME).bz2
102
# ZIP_FILENAME := $(VERSIONED_FILENAME).zip
103
# MD5_FILENAME := $(DIR_NAME).md5
104
# REV_EXTENSION := REV
106
# DOC_FILES_SRC := $(LICENSE_FILENAME_SRC) $(README_FILENAME_SRC) $(CHANGELOG_FILENAME_SRC)
108
# Directories which to remember when creating a source release
109
# MAIN_DIRS = $(SRC_DIR) $(DOC_DIR) $(SCRIPT_DIR) $(TEMPLATE_DIR) $(EXTRA_DIRS)
111
# Remove the @ when you want a more verbose output.