Hi there,
I would like to write down a simple Makefile at the root of my source directory in order to go in each directory to do a make all there.
I'm developping some javacode and a my own library called py. In py, I've got different subfoler in order to keep my source more or less organised:
./py/util (general purpose class, like extra math functions)
./py/images (class which open images, process them)
./py/gui (class of the gui to my program)
./py/io
etc...
In each folder, I've got some .java files and a Makefile. Usually, I go in each directory and perform a make all there and it works. Now, I would like to be smart. I stay in ./ and I type make all. I would like it goes in each subdirectory and perform a make all.
I tried so far and unsuccessfully:
-------------------------------------------------
SHELL = /bin/sh
CC = javac
SUBDIRS = images gui io util
#---------------------------------------------------------------------
# Rules
#---------------------------------------------------------------------
all:
for dir in ${SUBDIRS} ; do ( cd py/$dir ; ${MAKE} all ) ; done
-------------------------------------------------------
It says everything is up to date
How can I do?
Thanks for your help,
PY