javaweb-people
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Javaweb-people] build tools


From: Brian Jones
Subject: Re: [Javaweb-people] build tools
Date: 06 Feb 2002 21:45:10 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Nic Ferrier <address@hidden> writes:

> After a bit more thought I have achieved what I was trying to do.
> 
> For those interested here's the important bit of my makefile. I'm
> basically using a "cat" of a prepared filelist to act as the list
> variable that I was talking about.
> 
> 
> # This rule builds the destination directory for compiles.
> $(DESTINATION):
>       mkdir $@
> 
> # This rule recreates the filelist.
> # It has the nasty side effect of writing a blank line to the file
> # but compilers don't seem to mind that.
> init-filelist:
>       @echo > filelist
> 
> # A variable to represent the list of all files.
> DEPEND_LIST   = $(shell cat filelist)
> 
> 
> # The compilation targets.
> .PHONY: compile compile-files debug init-filelist
> 
> debug: init-filelist $(DEBUGCLASSES) debug-files
>       $(if $(DEPEND_LIST),$(call COMPILE,$(SOURCEDIR)))
> 
> debug-files:
>       $(if $(DEPEND_LIST),$(call COMPILE,$(DESTINATION)))
> 
> compile: $(DESTINATION) init-filelist $(DESTCLASSES) compile-files
> 
> compile-files:
>       $(if $(DEPEND_LIST),$(call COMPILE,$(DESTINATION)))
> 
> 
> # Automatically match a source file to it's dependant class file.
> $(DESTINATION)/%.class: $(SOURCEDIR)/%.java
>       @echo $? >> filelist.mak
> 
> $(SOURCEDIR)/%.class: $(SOURCEDIR)/%.java
>       @echo $? >> filelist.mak
> 

Something seems to be missing.  Is filelist.mak == filelist above in
setting DEPEND_LIST?  I've not used/seen the $(call COMPILE,  $(VAR))
notation before so I'm not sure about that.  Where are you setting
DESTCLASSES?

-- 
Brian Jones <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]