delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/11/22:46:14

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: nospam AT none DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: makefile question
Date: Wed, 12 Nov 2003 03:36:47 +0000 (UTC)
Organization: University of California, Berkeley
Lines: 18
Sender: Raymond Chi <chiry AT soda DOT csua DOT berkeley DOT edu>
Message-ID: <bos9sf$kig$1@agate.berkeley.edu>
NNTP-Posting-Host: soda.csua.berkeley.edu
X-Trace: agate.berkeley.edu 1068608207 21072 128.32.112.233 (12 Nov 2003 03:36:47 GMT)
X-Complaints-To: usenet AT agate DOT berkeley DOT edu
NNTP-Posting-Date: Wed, 12 Nov 2003 03:36:47 +0000 (UTC)
User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (FreeBSD/4.7-STABLE (i386))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi, does anyone know of a way to extend the following make so that
in addition to run make on all the subdirs, doing make clean will
call make clean on all the subdirs as well?

.PHONY: all clean subdirs $(SUBDIRS)

all: subdirs

subdirs: $(SUBDIRS)

$(SUBDIRS):
	$(MAKE) -C $@

I tried many variations of addinga clean rule, doesn't seem to work...

Thanks a lot.

Raymond

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019