forked from NoticEditorTeam/NoticEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (27 loc) · 775 Bytes
/
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
JC=javac
JCOPTS=-classpath `./configure` -sourcepath $(SRC) -d $(BUILD) -g $(SRC)/$(MAIN_CLASS)
PACKCMD=jar cfm $(DIST)/$(OUTPUT) $(MANIFEST) -C $(BUILD) .
RM=rm -rf
BUILD=./build
LIBS=./libs
DIST=./dist
SRC=./src
EXAMPLES=./examples
XMLIN=$(SRC)/fxml
XMLOUT=$(BUILD)/fxml
RESIN=$(SRC)/resources
RESOUT=$(BUILD)/resources
MANIFEST=manifest.mf
OUTPUT=NoticEditor.jar
MAIN_CLASS=com/noticeditorteam/noticeditor/Main.java
all: build
build:
gradle dist
tests:
gradle test
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(PREFIX)/share/NoticEditor/examples
install -m 0755 $(DIST)/$(OUTPUT) $(DESTDIR)$(PREFIX)/bin/$(OUTPUT)
cp -rf $(EXAMPLES) $(DESTDIR)$(PREFIX)/share/NoticEditor/examples
chmod -R 0755 $(DESTDIR)$(PREFIX)/share/NoticEditor/examples