Browse Source

--- Merging r18090 into '.':
U packages/fastcgi/Makefile.fpc
U packages/fastcgi/Makefile
U packages/fcl-web/Makefile.fpc
U packages/fcl-web/Makefile

# revisions: 18090
------------------------------------------------------------------------
r18090 | joost | 2011-08-04 10:49:46 +0200 (Thu, 04 Aug 2011) | 3 lines
Changed paths:
M /trunk/packages/fastcgi/Makefile
M /trunk/packages/fastcgi/Makefile.fpc
M /trunk/packages/fcl-web/Makefile
M /trunk/packages/fcl-web/Makefile.fpc

* Error-handling added in make distclean. When the fpmake executable
returns a exit-code not equal to 0, the executble is removed and
make fpc_cleanall is called recursively, to avoid manual intervention
------------------------------------------------------------------------

git-svn-id: branches/fixes_2_6@18092 -

marco 14 years ago
parent
commit
406cbf3d65

+ 1 - 1
packages/fastcgi/Makefile

@@ -2235,7 +2235,7 @@ ifeq ($(FPMAKE_BIN_CLEAN),)
 distclean:	$(addsuffix _distclean,$(TARGET_DIRS)) fpc_distclean
 else
 distclean:	
-	$(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
+	{ $(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi;  }
 	-$(DEL) $(LOCALFPMAKE)
 endif
 install:	fpmake

+ 1 - 1
packages/fastcgi/Makefile.fpc

@@ -51,7 +51,7 @@ ifeq ($(FPMAKE_BIN_CLEAN),)
 distclean:	$(addsuffix _distclean,$(TARGET_DIRS)) fpc_distclean
 else
 distclean:	
-	$(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
+        { $(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi;  }
 	-$(DEL) $(LOCALFPMAKE)
 endif
 install:	fpmake

+ 1 - 1
packages/fcl-web/Makefile

@@ -2235,7 +2235,7 @@ ifeq ($(FPMAKE_BIN_CLEAN),)
 distclean:	$(addsuffix _distclean,$(TARGET_DIRS)) fpc_distclean
 else
 distclean:	
-	$(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
+	{ $(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi;  }
 	-$(DEL) $(LOCALFPMAKE)
 endif
 install:	fpmake

+ 1 - 1
packages/fcl-web/Makefile.fpc

@@ -51,7 +51,7 @@ ifeq ($(FPMAKE_BIN_CLEAN),)
 distclean:	$(addsuffix _distclean,$(TARGET_DIRS)) fpc_distclean
 else
 distclean:	
-	$(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
+        { $(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi;  }
 	-$(DEL) $(LOCALFPMAKE)
 endif
 install:	fpmake