Procházet zdrojové kódy

If automake/*.m4 is modified, rebuild aclocal.m4. If aclocal.m4 or
configure.in are modified, rebuild configure.in. config.h.in gets rebuilt
if configure.in is modified. And, lastly, configure is rerun, if configure
or config.h.in is modified.

Adam Heath před 24 roky
rodič
revize
357efd33bb
2 změnil soubory, kde provedl 17 přidání a 1 odebrání
  1. 7 0
      ChangeLog
  2. 10 1
      debian/rules

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+Sun May 19 04:18:46 CDT 2002 Adam Heath <doogie@debian.org>
+
+  * debian/rules: If automake/*.m4 is modified, rebuild aclocal.m4.  If
+    aclocal.m4 or configure.in are modified, rebuild configure.in.
+    config.h.in gets rebuilt if configure.in is modified.  And, lastly,
+    configure is rerun, if configure or config.h.in is modified.
+
 Sun May 19 04:09:25 CDT 2002 Adam Heath <doogie@debian.org>
 
   * debian/rules: Fix targets, so that if configure fails, but actually

+ 10 - 1
debian/rules

@@ -24,8 +24,17 @@ endif
 
 BUILD-DIRS	:= $(BUILD) $(BUILD)-static
 
+aclocal.m4: $(wildcard automake/*.m4)
+	aclocal.m4 -I automake
+
+configure: configure.in aclocal.m4
+	autoconf
+
+config.h.in: configure.in
+	autoheader
+
 # Setup the buildlocation
-$(BUILD)/configure-stamp:
+$(BUILD)/configure-stamp: configure config.h.in
 	$(checkdir)
 	install -d $(@D)
 	cd $(@D) && LDFLAGS=$(LDFLAGS) $(DIR)/configure \