Recent Changes - Search:

Main.SideBar (edit)



Make

Here is a makefile for Make that recursivly calls make on each subdirectory in a list

# make all directories
# if make finds the target it thinks it is up-to-date so
# each target is prefixed with a "_" this is then srtipped
# off by the tr command
#
# Chris Hunter
# April 2006
#

DIRS = _dir1 _dir2 _dir3

all : $(DIRS)

$(DIRS) .MAKE .ALWAYS :
#following line starts with a tab character
cd `echo $@ | tr -d _` ; ${MAKE}

Edit - History - Print - Recent Changes - Search
Page last modified on April 21, 2006, at 02:14 PM