-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
49 lines (36 loc) · 890 Bytes
/
makefile
File metadata and controls
49 lines (36 loc) · 890 Bytes
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
# Manifest
# MANIFEST_TYPE=Main-Class
# MANIFEST_TYPE=Class-Path
# MANIFEST_VALUE=com.github.peculiar.codeManual.Main
# MANIFEST_VALUE=lib\peculiar-gui-v0.0.4.jar
PACKAGE=com.github.peculiar.codeGrimoire.view
JAVA_FILE=MyTextArea.java
# class root folder
CLASS_ROOT=com
ICON=icon.png
ICON_PATH=src\com\peculiar\ngita
ICON_PACKAGE=com\peculiar\ngita
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
add-to-Manifest:
jpb --aim $(MANIFEST_TYPE) $(MANIFEST_VALUE)
add-package:
jpb --md $(PACKAGE)
add-class:
jpb --cf $(PACKAGE) $(JAVA_FILE)
test:
jpb --test
clean-classes:
echo Cleaning class files...
rd /Q /S $(CLASS_ROOT)
clean:
echo Cleaning .jar and .exe..
del dist\*.exe
del dist\*.jar