Article View: gnu.utils.bug
Article #23Question about GNU make
From: Andy Smoak
Date: Thu, 29 Oct 1992 19:45
Date: Thu, 29 Oct 1992 19:45
33 lines
1711 bytes
1711 bytes
This is not really a bug report, more a cry for help. I'm trying to create a gnu makefile that has several recursive targets. The classic example would be a clean-all, which should clean the current directory and any subdirectories. My target in my makefile looks like this: clean-all depend-all lint-all: $(patsubst %-all,%, $@) ifneq "$(SUBDIRS)" "" -(for i in $(SUBDIRS) ; do\ $(MAKE) -C $$i $@; done) endif where SUBDIRS is a list of directories. What I am trying to get here is that if I do a make clean-all, the clean-all target depends upon a target clean, then it does a clean-all in every subdirectory. What I get is a dependency that is basically NULL. It never executes the clean (or depend or lint), but does execute the rest of the rule. Any ideas about how to get this to work? BTW, I realize that I could just create separate targets for each of these, repeating the code under each target. For now, I guess that is what I will do. Andy Smoak -- F. Andrew Smoak PHONE: (703) 342-6700, (800) 423-1183 FiberCom, Inc. FAX: (703) 342-5961 P.O. Box 11966 INTERNET: fas@fibercom.com Roanoke, VA 24022-1966 UUCP: ...!uunet!fibercom!fas
Technical Details
Message-ID:
<40942@fibercom.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mudlick.UUCP!fasShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mudlick.UUCP!fas From: fas@mudlick.UUCP (Andy Smoak) Newsgroups: gnu.utils.bug Subject: Question about GNU make Keywords: gmake 3.62 Message-ID: <40942@fibercom.COM> Date: 29 Oct 92 19:45:31 GMT Article-I.D.: fibercom.40942 Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 33 Approved: bug-gnu-utils@prep.ai.mit.edu