Subject: Re: Make fails building bind on AIX
From: Benoit Grange <[email-masked]>
To: [email-masked]
Date: Tue, 12 Jul 1994 15:57:09 +0200

> what do you mean "separate" the all and clean targets?

In the Makefile, instead of :

----
all clean depend:: FRC
	@for x in $(SUBDIRS); do \
		(cd $$x; pwd; $(MAKE) $(MARGS) $@); \
	done

clean:: FRC
	-test -d doc/bog && (cd doc/bog; pwd; $(MAKE) $(MARGS) $@)
	(cd conf; rm -f *~ *.CKP *.BAK *.orig)
	rm -f *~ *.CKP *.BAK *.orig
...
----
I write :
----

all :: FRC
	@for x in $(SUBDIRS); do \
		(cd $$x; pwd; $(MAKE) $(MARGS) $@); \
	done

clean:: FRC
	@for x in $(SUBDIRS); do \
		(cd $$x; pwd; $(MAKE) $(MARGS) $@); \
	done
	-test -d doc/bog && (cd doc/bog; pwd; $(MAKE) $(MARGS) $@)
	(cd conf; rm -f *~ *.CKP *.BAK *.orig)
	rm -f *~ *.CKP *.BAK *.orig

depend:: FRC
	@for x in $(SUBDIRS); do \
		(cd $$x; pwd; $(MAKE) $(MARGS) $@); \
	done

--------------------

Anyway, all this is because of the buggy make supplied
with AIX.

Benoit Grange.