changeset 643:f1301ff4b979

forcing user to re-run ./configure if it's changed
author arpi_esp
date Thu, 26 Apr 2001 20:35:23 +0000
parents ea9f904513a4
children 88eb1a3f7bfb
files Makefile
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Apr 26 20:23:24 2001 +0000
+++ b/Makefile	Thu Apr 26 20:35:23 2001 +0000
@@ -30,7 +30,7 @@
 
 # .PHONY: all clean
 
-all:	version.h $(PRG) $(PRG_CFG)
+all:	version.h config.h $(PRG) $(PRG_CFG)
 # $(PRG_AVIP)
 
 .c.o:
@@ -96,6 +96,13 @@
 .depend: Makefile config.mak config.h
 	makedepend -f- -- $(CFLAGS) -- mplayer.c mplayerHQ.c aviparse.c tvision.c $(SRCS) 1>.depend 2>/dev/null
 
+# ./configure must be run if it changed in CVS
+config.h: configure
+	@echo "############################################################"
+	@echo "####### Please run ./configure again - it's changed! #######"
+	@echo "############################################################"
+	@exit 1
+
 # rebuild at every config.h/config.mak change:
 version.h: config.h config.mak Makefile
 	$(MAKE) distclean