Project

General

Profile

Revision 374

Added by Greg Tress about 16 years ago

added installation function to colonet gui Makefile

View differences:

Makefile
17 17
JCFLAGS = -g -d $(DIR) -target 1.5
18 18
JCWARN = -Xlint:deprecation,unchecked,fallthrough,path,finally
19 19

  
20
# Jar Flags
21
#  c             Create new archive
22
#  v             Generate verbose output while archiving
23
#  f             Specify archive file name
24 20

  
25
JAR = jar
26
JARFLAGS = cvf
27

  
28 21
# Java file compilation instructions
29 22
# For default compilation, archive classes into Colonet.jar
30 23

  
31 24
default: $(DIR)/Colonet.class build/ColonetServerInterface.class
32
	$(JAR) $(JARFLAGS) $(DIR)/Colonet.jar $(DIR)/*.class
33 25

  
34 26
$(DIR)/Colonet.class: ColonetServerInterface.java
35 27
	$(JC) $(JCWARN) $(JCFLAGS) Colonet.java
......
37 29
$(DIR)/ColonetServerInterface.class: ColonetServerInterface.java
38 30
	$(JC) $(JCWARN) $(JCFLAGS) ColonetServerInterface.java
39 31

  
32
install:
33
	cp $(DIR)/*.class /var/www/colonet
34
	cp index.html /var/www/colonet
40 35

  
41 36
clean:
42 37
	$(RM) $(DIR)/*.class

Also available in: Unified diff