Changeset - r17947:429fbf8ea627
[Not reviewed]
master
0 8 12
rubidium - 13 years ago 2011-08-20 12:52:45
rubidium@openttd.org
(svn r22766) -Add: river graphics for the original base set (andythenorth)
1 file changed:
Changeset was too big and was cut off... Show full diff anyway
0 comments (0 inline, 0 general)
Makefile.grf.in
Show inline comments
 
@@ -33,26 +33,26 @@ else
 
	Q = @
 
	E = @echo
 
endif
 

	
 
# Some configurational settings for your environment.
 
# If GRFCodec doesn't know a command, it'll exit with a non-zero exit code.
 
GRFCODEC := $(shell grfcodec -s -v >/dev/null 2>/dev/null && echo "grfcodec -s" || echo "grfcodec")
 
# Old NFORenums don't give an error code when a parameter isn't known, so we have to work around that.
 
NFORENUM := $(shell [ `nforenum -s -v 2>/dev/null | wc -l ` -eq 1 ] && echo "nforenum -s" || echo "nforenum")
 
MD5SUM   := $(shell [ "$(OS)" = "OSX" ] && echo "md5 -r" || echo "md5sum")
 

	
 
# Some "should not be changed" settings.
 
NFO_FILES    := $(GRF_DIR)/*.nfo
 
PNG_FILES    := $(GRF_DIR)/*.png
 
NFO_FILES    := $(GRF_DIR)/*.nfo $(GRF_DIR)/rivers/*.nfo
 
PNG_FILES    := $(GRF_DIR)/*.png $(GRF_DIR)/rivers/*.png
 

	
 
# Build the GRF.
 
all: $(BIN_DIR)/openttd.grf
 

	
 
# Make sure the sprites directory exists.
 
$(OBJS_DIR)/sprites:
 
	$(Q)-mkdir "$@"
 

	
 
# Generic
 
$(BIN_DIR)/openttd.grf: $(PNG_FILES) $(NFO_FILES) $(OBJS_DIR)/sprites
 
	@# Only try; if nforenum isn't available, just retouch the file as they likely didn't need it anyway.
 
	$(Q) ($(NFORENUM) --help > /dev/null 2>&1 && $(MAKE) $(OBJS_DIR)/openttd.grf && cp $(OBJS_DIR)/openttd.grf $(BIN_DIR)/openttd.grf) || ([ -e $(BIN_DIR)/openttd.grf ] && touch $(BIN_DIR)/openttd.grf && echo "no NFORenum and GRFCodec found, skipping rebuild of openttd.grf...") || (echo "no NFORenum and GRFCodec found, but no openttd.grf either. Install NFORenum and GRFCodec." && exit 1)

Changeset was too big and was cut off... Show full diff anyway

0 comments (0 inline, 0 general)