optional_depcheck_firs.diff

planetmaker, 2010-08-13 08:55

Download (1.77 KB)

View differences:

scripts/Makefile.common
127 127

  
128 128
depend: $(MAKEFILE_DEP)
129 129
$(MAKEFILE_DEP): $(REV_FILENAME)
130
ifeq ($(DEP_CHECK_TYPE), normal)
130 131
	$(_E) "[Generating] $(MAKEFILE_DEP)"
131 132
ifeq ($(PROJECT_TYPE),CATCODEC)			# BASE SOUND: special file format
132 133
	$(_V) echo "$(SRC_DIR)/$(MAIN_FILENAME_SRC): "`cat $(SRC_DIR)/$(MAIN_FILENAME_SRC) | $(AWK) 'BEGIN { FS = " " } ; { print $$1 }' | grep 'wav' | grep -v '^//' | sed 's/"//g' | sort | uniq` > $(MAKEFILE_DEP)
......
137 138
	$(_V) echo "$(MAIN_TARGET): $(LANG_FILES)" >> $(MAKEFILE_DEP)
138 139
endif
139 140
endif
141
endif
140 142
	$(_V) [ -e $(REV_FILENAME) ] && [ "`cat $(REV_FILENAME)`" = "$(VERSION_STRING)" ] || echo "$(VERSION_STRING)" > $(REV_FILENAME)
141 143

  
142 144
addcheck:
scripts/Makefile.def
144 144
FILE_SRC_RE        := $(shell echo $(FILE_SRC_EXTENSIONS) | tr -s "[:space:]" "|")
145 145
FILE_INC_RE        := $(shell echo $(FILE_INC_EXTENSIONS) | tr -s "[:space:]" "|")
146 146
FILES_NOT_PACK_RE  := "(\.hgignore|\.hgtags|backup\.push|\.devzone)"
147
DEP_CHECK_TYPE     ?= normal
147 148

  
148 149
# Remove the @ when you want a more verbose output.
149 150
_V ?= @
scripts/Makefile.in
1 1
# Here also go all build targets specific to this very newgrf
2 2

  
3
sprites/nfo/firs.pnfo: sprites/nfo/cargo_schemes.pnfo sprites/nfo/cargos.pnfo
4

  
3 5
sprites/nfo/cargo_schemes.pnfo:: sprites/nfo/cargo_schemes.list sprites/nfo/cargo_schemes.template
4 6
	$(_E) "[Generating] $@"
5 7
	$(_V) cat sprites/nfo/cargo_schemes.list | grep -v '//' | $(AWK) -f 'scripts/cargoschemes_fieldnames.awk' -f 'scripts/gen_cargo_schemes.awk' > $@