root / trunk / code / projects / colonet / ColonetGUI / Makefile @ 408
History | View | Annotate | Download (1.34 KB)
1 | 372 | gtress | # Colonet GUI Makefile |
---|---|---|---|
2 | # Gregory Tress |
||
3 | # |
||
4 | # DIR is the name of the output directory |
||
5 | # JCFLAGS are the compiler options |
||
6 | # JCWARN specifies which warnings should be displayed |
||
7 | # |
||
8 | # Complier Flags |
||
9 | # -g Generate all debugging info |
||
10 | # -d <dir> Specify where to place generated class files |
||
11 | # -target <vm> Generate class files for a specific VM release (i.e. 1.6) |
||
12 | # -Xlint Enable warnings |
||
13 | |||
14 | JC = javac |
||
15 | DIR = build |
||
16 | JCFLAGS = -g -d $(DIR) -target 1.5 |
||
17 | JCWARN = -Xlint:deprecation,unchecked,fallthrough,path,finally |
||
18 | |||
19 | # Java file compilation instructions |
||
20 | |||
21 | 387 | gtress | default: $(DIR)/Colonet.class $(DIR)/ColonetServerInterface.class $(DIR)/Colonet.jar |
22 | |||
23 | $(DIR)/Colonet.jar: |
||
24 | 400 | gtress | @echo --- Creating archive file --- |
25 | cd $(DIR); jar cvf Colonet.jar *.class; jarsigner -keystore colonetkey -storepass colonet Colonet.jar colonet |
||
26 | @echo --- Done --- |
||
27 | 372 | gtress | |
28 | 387 | gtress | $(DIR)/Colonet.class: Colonet.java |
29 | 400 | gtress | @echo --- Compiling --- |
30 | 372 | gtress | $(JC) $(JCWARN) $(JCFLAGS) Colonet.java |
31 | |||
32 | $(DIR)/ColonetServerInterface.class: ColonetServerInterface.java |
||
33 | $(JC) $(JCWARN) $(JCFLAGS) ColonetServerInterface.java |
||
34 | |||
35 | 374 | gtress | install: |
36 | 400 | gtress | @echo --- Copying files to /var/www/colonet --- |
37 | 408 | emarinel | rm -rf /var/www/colonet/ |
38 | 406 | gtress | mkdir /var/www/colonet/ |
39 | 405 | gtress | cp $(DIR)/Colonet.jar /var/www/colonet/Colonet.jar |
40 | cp index.html /var/www/colonet/index.html |
||
41 | 408 | emarinel | cp colonetstyle.css /var/www/colonet/colonetstyle.css |
42 | 372 | gtress | |
43 | clean: |
||
44 | $(RM) $(DIR)/*.class |
||
45 | $(RM) $(DIR)/*.jar |