How Do I Use a Makefile?

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
TrainLover
Engineer
Engineer
Posts: 107
Joined: 01 Jul 2015 15:03

How Do I Use a Makefile?

Post by TrainLover »

I downloaded the makefile from OpenTTDCoopDevRepository and am using make && make install for a NewGRF. I changed the config to be:

# Definition of the grfs
REPO_NAME ?= North American Passenger Liveries

# This is the filename part common to the grf file, main source file and the tar name
BASE_FILENAME ?= NAPL

# Documentation files
DOC_FILES ?= docs/readme.txt docs/license.txt docs/changelog.txt

# Possible offset to NewGRF version. Increase by one, if a release
# branch is added to the repository
REPO_BRANCH_VERSION ?= 0

# Directory structure
SCRIPT_DIR ?= scripts

# Uncomment in order to make use of gimp scripting. See the file
# for a description of the format
GFX_SCRIPT_LIST_FILES := gfx/png_source_list

# If needed, declare the minimum NML requirements
# REQUIRED_NML_BRANCH = 0.4
# MIN_NML_REVISION = 0

Do I need to set up anything in WindowsPowerShell before I can use it?

Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests