[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Links]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[SamR]
[Java 1.4.2 API]
[Ant Documentation]
Back to Version Management with CVS. On to Java Project Management with Ant.
Held: Wednesday, 22 September 2004
Summary:
Today we review the wonders of Make, a tool for handlind dependencies and recompilation
.
Related Pages:
Notes:
Overview:
Makefile
.
target: things-it-depends-on instruction1 instruction2
stuff.jar
, I might need Stu.class
and FF.class
. I would express this as
stuff.jar: Stu.class FF.class jar -c stuff.jar Stu.class FF.class
Stu.class
depends on Stu.java
and Art.class
, I might write
Stu.class: Stu.java Art.class jc Stu.java
make target
all: target1 target2 target3
make all
make
VARIABLE = DEFINITION
JAVAC = /opt/IBMJava2-142/bin/javac
$(VARAIBLE)
.
Stu.class: Stu.java Art.class $(JAVAC) Stu.java
############################################################ # SITE SPECIFIC ENTRIES # ######################### # Change the following to the path to your Javadoc program JAVADOC = /opt/IBMJava2-142/bin/javadoc # Change the following to the standard location for documentation DOCDIR = /home/rebelsky/Web/Courses/CS223/2004F/Examples/make/doc ############################################################ # SITE SPECIFIC ENTRIES # ######################### # Standard flags for Javadoc JDFLAGS = -d $(DOCDIR) -author -version # Build Javadoc JD = $(JAVADOC) $(JDFLAGS) # The standard Java files JAVA_FILES = Stu.java Art.java doc: $(JAVA_FILES) $(JD) $(JAVA_FILES)
.SUFFIXES: suffixes
.suffix.suffix
Back to Version Management with CVS. On to Java Project Management with Ant.
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Links]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[SamR]
[Java 1.4.2 API]
[Ant Documentation]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Mon Dec 6 08:50:03 2004.
The source to the document was last modified on Mon Aug 30 08:01:14 2004.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS223/2004F/Outlines/outline.12.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby