Преглед на файлове

Fix targets, so that if configure fails, but actually succeeds in creating
config.status(as might happen if one has a c-style comment in configure.in,
and the shell trys running /foo), then the build will actually fail
correctly.

Adam Heath преди 24 години
родител
ревизия
a2dae43807
променени са 2 файла, в които са добавени 10 реда и са изтрити 2 реда
  1. 7 0
      ChangeLog
  2. 3 2
      debian/rules

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+Sun May 19 04:09:25 CDT 2002 Adam Heath <doogie@debian.org>
+
+  * debian/rules: Fix targets, so that if configure fails, but actually
+    succeeds in creating config.status(as might happen if one has a
+    c-style comment in configure.in, and the shell trys running /foo), then
+    the build will actually fail correctly.
+
 Sun May 19 02:31:11 CDT 2002 Adam Heath <doogie@debian.org>
 
   * acconfig.h: Oops.  Forgot to add #undef HAVE_GNUC25_UNUSED.

+ 3 - 2
debian/rules

@@ -25,7 +25,7 @@ endif
 BUILD-DIRS	:= $(BUILD) $(BUILD)-static
 
 # Setup the buildlocation
-$(BUILD)/config.status:
+$(BUILD)/configure-stamp:
 	$(checkdir)
 	install -d $(@D)
 	cd $(@D) && LDFLAGS=$(LDFLAGS) $(DIR)/configure \
@@ -40,6 +40,7 @@ $(BUILD)/config.status:
 		--with-zlib=static \
 		--with-static-progs \
 		$(config_arg)
+	touch $@
 
 clean:
 	$(checkdir)
@@ -51,7 +52,7 @@ clean:
 
 build: stamp-build
 
-stamp-build: $(BUILD)/config.status
+stamp-build: $(BUILD)/configure-stamp
 	$(MAKE) $(MFLAGS) -C $(BUILD)
 #	touch $@