
DIRlist = article1 article2 article3

all : $(DIRlist)

article1 :
	(cd article1; make)

article2 :
	(cd article2; make)

article3 :
	(cd article3; make)

	
rebuild : CLEAN $(DIRlist) clean

clean :
	rm -f *.aux *.log *.toc *~ 
	(cd article1;make clean)
	(cd article2;make clean)
	(cd article3;make clean)

CLEAN : 
	rm -f *.pdf *.aux *.log *.toc *~ 
	(cd article1;make CLEAN)
	(cd article2;make CLEAN)
	(cd article3;make CLEAN)

.PHONY : $(DIRlist)