Fix for broken "make clean" in 0.9.3

Rich Wales richw at webcom.com
Sat Feb 20 10:49:02 CET 1999


I did some more investigation into the 0.9.3 "make clean" problem I
reported earlier.  It appears that some of the changes to "Makefile.in"
from 0.9.2 to 0.9.3 are broken.

I managed to get "make clean" to work by substituting a portion of the
0.9.2 "Makefile.in" back into the 0.9.3 version.  See the "diff -U 3"
output below.

Rich Wales         richw at webcom.com         http://www.webcom.com/richw/
See http://www.webcom.com/richw/pgp/ for my PGP key and fingerprint info

========================================================================

--- Makefile.in.orig	Fri Feb 19 09:07:47 1999
+++ Makefile.in	Sat Feb 20 10:28:24 1999
@@ -191,21 +191,13 @@
 mostlyclean-recursive clean-recursive distclean-recursive \
 maintainer-clean-recursive:
 	@set fnord $(MAKEFLAGS); amf=$$2; \
-	dot_seen=no; \
 	rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
 	  rev="$$subdir $$rev"; \
-	  test "$$subdir" = "." && dot_seen=yes; \
 	done; \
-	test "$$dot_seen" = "no" && rev=". $$rev"; \
-	target=`echo $@ | sed s/-recursive//`; \
 	for subdir in $$rev; do \
+	  target=`echo $@ | sed s/-recursive//`; \
 	  echo "Making $$target in $$subdir"; \
-	  if test "$$subdir" = "."; then \
-	    local_target="$$target-am"; \
-	  else \
-	    local_target="$$target"; \
-	  fi; \
-	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	  (cd $$subdir && $(MAKE) $$target) \
 	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
 	done && test -z "$$fail"
 tags-recursive:

========================================================================





More information about the Gnupg-devel mailing list