From 20d48bf67a858f55a8bc468c37eade852b8dca2b Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Wed, 24 Jul 2002 18:49:23 +0000 Subject: [PATCH] Fixed environment variable checking in Makefile and make tar command. svn path=/trunk/boinc/; revision=246 --- Makefile.in | 35 ++++++++++++++++++++++++++++------- client/Makefile.in | 8 +++++++- 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/Makefile.in b/Makefile.in index cdc9c7db1f..3bcd1710bf 100644 --- a/Makefile.in +++ b/Makefile.in @@ -59,8 +59,8 @@ BOINC_WARN_ENV = 1 BOINC_MASTER_URL_MSG = $(ENV_MSG_1)"BOINC_MASTER_URL"$(ENV_MSG_2) endif ifdef BOINC_WARN_ENV -ENV_MESSAGES = echo "****************************************"; \ - echo $(BOINC_DOWNLOAD_DIR_MSG) \ +ENV_MESSAGES = "****************************************" \ + $(BOINC_DOWNLOAD_DIR_MSG) \ $(BOINC_UPLOAD_URL_MSG) \ $(BOINC_PLATFORM_MSG) \ $(BOINC_EMAIL_MSG) \ @@ -72,8 +72,9 @@ ENV_MESSAGES = echo "****************************************"; \ $(BOINC_UPLOAD_URL_MSG) \ $(BOINC_DOWNLOAD_URL_MSG) \ $(BOINC_MASTER_URL_MSG) \ - $(ENV_MSG_3); \ - echo "****************************************"; + $(ENV_MSG_3) \ + "****************************************" +EXIT_IF_NEEDED = @exit 1; endif # @@ -93,7 +94,8 @@ all: messages cd tools; ${MAKE}; cd ..; messages: - $(ENV_MESSAGES) + @echo $(ENV_MESSAGES) + $(EXIT_IF_NEEDED) clean: rm -f boinc.tar.gz config.cache; \ @@ -125,8 +127,27 @@ uninstall: cd tools; ${MAKE} uninstall; $(RM) -r $(INSTALL_DIR)/tools; -tar: clean - tar cf boinc.tar * ; gzip boinc.tar +TAR_TARGETS = \ + client/*.C client/*.cpp client/*.h client/configure \ + client/install-sh client/*.in client/*.sub client/*.guess \ + apps/*.C apps/*.h apps/*.in \ + db/*.sql db/*.h db/*.C db/*.in db/init_db \ + doc/*.* \ + html_ops/*.* \ + html_user/*.* \ + lib/*.C lib/*.c lib/*.h lib/*.in \ + sched/*.C sched/*.h sched/*.in \ + sched_fcgi/*.C sched_fcgi/*.h sched_fcgi/*.in \ + test/*.xml test/*.php test/*wu test/*result test/*output \ + test/*.html test/*input \ + tools/*.C tools/*.h tools/*.in \ + api/*.C api/*.h api/*.in \ + RSAEuro/*/*.c RSAEuro/*/*.h RSAEuro/*/*.in RSAEuro/*/*.mak \ + INSTALL ACKNOWLEDGEMENTS LICENSE configure install-sh \ + *.in *.sub *.guess *.m4 + +tar: + tar cf boinc.tar $(TAR_TARGETS) ; gzip boinc.tar client_tar: clean cd client; ./configure; ${MAKE} tar; diff --git a/client/Makefile.in b/client/Makefile.in index e58d9d0032..53fb02825f 100644 --- a/client/Makefile.in +++ b/client/Makefile.in @@ -69,7 +69,13 @@ TEST_FX_OBJS = \ file_names.o \ file_xfer.o -TAR_TARGETS = client/*.C client/*.cpp client/*.h client/configure client/install-sh client/*.in client/*.sub client/*.guess lib/*.C lib/*.c lib/*.h api/*.C api/*.h RSAEuro/*/*.c RSAEuro/*/*.h RSAEuro/*/*.in RSAEuro/*/*.mak INSTALL_CLIENT +TAR_TARGETS = \ + client/*.C client/*.cpp client/*.h client/configure \ + client/install-sh client/*.in client/*.sub client/*.guess \ + lib/*.C lib/*.c lib/*.h \ + api/*.C api/*.h \ + RSAEuro/*/*.c RSAEuro/*/*.h RSAEuro/*/*.in RSAEuro/*/*.mak \ + INSTALL_CLIENT ACKNOWLEDGEMENTS LICENSE .C.o: $(CC) -c -o $*.o $<