List Info

Thread: Question about PHONY




Question about PHONY
user name
2008-04-13 01:37:05
Dear all:
I read the document about make recently.
I have some questions:
1. in example 1 list below that excerpted from document,
there are 2
disadvantages:
   1. Cannot see the error.
   2. Cannot use parallel execution.
So the doc uses modification 1 to fix them, but if I use
modification 2, I
will also fix them, right? Except I cannot force make to
rerun it every
time, if there is already a file called subdirs. 

Appreciate your help,
vichy

Example1:
SUBDIRS = foo bar baz
subdirs:
	for dir in $(SUBDIRS); do 
	$(MAKE) -C $$dir; 
	done

Modification 1:
SUBDIRS = foo bar baz
.PHONY: subdirs $(SUBDIRS)
subdirs: $(SUBDIRS)
$(SUBDIRS):
	$(MAKE) -C $
foo: baz

modification 2:
SUBDIRS = foo bar baz
.PHONY: $(SUBDIRS)
subdirs: $(SUBDIRS)
$(SUBDIRS):
	$(MAKE) -C $
foo: baz





_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )