Mercurial > hg > openttd
changeset 14459:8d0e19518a53 draft
(svn r19018) -Change: [Makefile] Make test an alias for regression, distclean an alias for mrproper and update mrproper to really delete all generated files/directories.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 05 Feb 2010 16:20:04 +0000 |
parents | d809c6815bf5 |
children | bac88a0c21bc |
files | Makefile.in Makefile.lang.in config.lib |
diffstat | 3 files changed, 18 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.in +++ b/Makefile.in @@ -129,10 +129,22 @@ done $(Q)rm -rf objs $(Q)rm -f Makefile Makefile.am Makefile.bundle - $(Q)rm -f media/openttd.desktop + $(Q)rm -f media/openttd.desktop media/openttd.desktop.install $(Q)rm -f $(CONFIG_CACHE_SOURCE_LIST) config.cache config.pwd config.log $(CONFIG_CACHE_PWD) +# directories for bundle generation $(Q)rm -rf $(BUNDLE_DIR) $(Q)rm -rf $(BUNDLES_DIR) +# output of profiling + $(Q)rm -f $(BIN_DIR)/gmon.out +# output of generating 'API' documentation + $(Q)rm -f $(ROOT_DIR)/openttd.tag + $(Q)rm -rf $(ROOT_DIR)/docs/source +# output of generating AI API documentation + $(Q)rm -f $(SRC_DIR)/ai/api/openttd.tag + $(Q)rm -rf $(ROOT_DIR)/docs/aidocs +# directories created by OpenTTD on regression testing + $(Q)rm -rf $(BIN_DIR)/ai/regression/content_download $(BIN_DIR)/ai/regression/save $(BIN_DIR)/ai/regression/scenario +distclean: mrproper depend: @for dir in $(SRC_DIRS); do \ @@ -150,6 +162,7 @@ regression: all $(Q)cd !!BIN_DIR!! && sh ai/regression/run.sh +test: regression %.o: @for dir in $(SRC_DIRS); do \ @@ -161,4 +174,6 @@ $(MAKE) -C $$dir $@; \ done +.PHONY: test distclean mrproper clean + include Makefile.bundle
--- a/Makefile.lang.in +++ b/Makefile.lang.in @@ -88,6 +88,7 @@ $(Q)rm -f strgen.o string.o table/strings.h $(STRGEN) $(LANGS) $(LANGS:%=$(BIN_DIR)/lang/%) lang/english.* $(ENDIAN_TARGETS) mrproper: clean + $(Q)rm -rf $(BIN_DIR)/lang %.lng: @echo '$(STAGE) No such language: $(@:%.lng=%)'
--- a/config.lib +++ b/config.lib @@ -274,6 +274,7 @@ --enable-ipo=*) enable_lto="$optarg";; --enable-dedicated) enable_dedicated="1";; --enable-dedicated=*) enable_dedicated="$optarg";; + --enable-network) enable_network="2";; --enable-network=*) enable_network="$optarg";; --disable-network) enable_network="0";; --disable-static) enable_static="0";;