This repository was archived by the owner on Jul 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
64 lines (60 loc) · 1.38 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#Makefile for Java Project Building
#main
ICON=icon.png
ICON_PATH=src\com\peculiar\yano\editor
ICON_PACKAGE=com\peculiar\yano\editor
all: compile-run clean-classes
echo done.
compile-run:
echo Compiling...
jpb --compile
xcopy /Y $(ICON_PATH)\$(ICON) $(ICON_PACKAGE)
jar -uf dist\project.jar $(ICON_PACKAGE)\$(ICON)
echo Running Application...
jpb --run
#adding new package and new class
PACKAGE=com.peculiar.yano.editor
JAVA_FILE=App.java
add-new-package:
jpb --md $(PACKAGE)
echo done.
add-new-class:
jpb --cf $(PACKAGE) $(JAVA_FILE)
echo done.
#manifest Main-Class
MAIN_ENTRY_POINT=Main.java
MAIN_PACKAGE=com.peculiar.yano.editor
MAIN_CLASS=Main-Class
Main_CLASS_VALUE=com.peculiar.yano.editor.Main
add-Main-Class:
jpb --md $(MAIN_PACKAGE)
jpb --cf $(MAIN_PACKAGE) $(MAIN_ENTRY_POINT)
jpb --aim $(MAIN_CLASS) $(Main_CLASS_VALUE)
echo done.
# Manifest Class-Path
MANIFEST_CLASS_PATH=
MANIFEST_CLASS_PATH_VALUE=
add-Class-Path:
jpb --aim $(MANIFEST_CLASS_PATH) $(MANIFEST_CLASS_PATH_VALUE)
echo done.
# Author
MANIFEST_AUTHOR=Author
MANIFEST_AUTHOR_VALUE=Mark Wayne B. Menorca
add-Author:
jpb --aim $(MANIFEST_AUTHOR) $(MANIFEST_AUTHOR_VALUE)
echo done.
#testing
test:
jpb --test
echo done.
#cleaning
CLASS_ROOT=com
clean-classes:
echo Cleaning class files...
rd /Q /S $(CLASS_ROOT)
echo done.
clean:
echo Cleaning .jar and .exe..
del dist\*.exe
del dist\*.jar
echo done.