FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
basic-java-25-quickstart/Makefile at refs/heads/fix/issue-3 · java-cli-apps/basic-java-25-quickstart · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
java-cli-apps
/
basic-java-25-quickstart
Public template
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
basic-java-25-quickstart
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
53 lines (40 loc) · 1.65 KB
Breadcrumbs
basic-java-25-quickstart
/
Makefile
Copy path
File metadata and controls
53 lines (40 loc) · 1.65 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
help
:
#
# Afficher l'aide
@grep -E
'
^[a-zA-Z_-]+:.*?## .*$$
'
Makefile
\
|
awk
'
BEGIN {FS = ":.*?## "}; { printf("\033[36m%-20s\033[0m %s\n", $$1, $$2) }
'
package
: build
#
# Construire le livrable de l'application dans un fichier .zip
cd
$(
BUILD
)
\
&&
zip --quiet --recurse-paths
$(
APP_NAME
)
.zip
$(
APP_DIR
)
install
: .check-install-dir
#
# Installer l'application
unzip -q -d
$(
DEST_DIR
)
$(
BUILD
)
/
$(
APP_NAME
)
.zip
build
:
#
# Construire l'application
mkdir --parents
$(
BUILD_APP
)
\
&&
mkdir -p
$(
BUILD_APP
)
/src
\
&&
cp
$(
PRODUCTION_SOURCES
)
$(
BUILD_APP
)
/src
\
&&
cp --update --recursive lib bin
$(
BUILD_APP
)
\
&&
cd
$(
BUILD_APP
)
\
&&
mv src/
$(
STARTER_APP
)
.java src/
$(
APP_NAME
)
.java
\
&&
mv bin/
$(
STARTER_APP
)
.sh bin/
$(
APP_NAME
)
.sh
clean
:
#
# Nettoyer le répertoire de construction
rm --force --recursive
$(
BUILD
)
run-app
:
#
# Lancer l'application localement
./bin/
$(
STARTER_APP
)
.sh --language French
run-app-help
:
#
# Afficher l'aide de l'application
./bin/
$(
STARTER_APP
)
.sh --help
run-app-from-java
:
#
# Lancer l'application localement (en lançant le fichier .java)
./src/
$(
STARTER_APP
)
.java --language French
run-installed-app
: .check-install-dir
#
# Lancer l'application installée
PATH=
$(
DEST_DIR
)
/
$(
APP_DIR
)
/bin:
$(
PATH
)
$(
APP_NAME
)
.sh
test
:
#
# Exécuter les tests
./src/LanguageTest.java
./src/ApplicationTest.java
.check-install-dir
:
ifndef
DEST_DIR
$(error Please set the installation directory, for example DEST_DIR=~ make install)
endif
.PHONY
: build
APP_NAME
?= BasicQuickstart
APP_DIR
:=
$(
APP_NAME
)
BUILD
:= build
BUILD_APP
:=
$(
BUILD
)
/
$(
APP_DIR
)
STARTER_APP
:= Application
PRODUCTION_SOURCES
:=
$(
shell
find src -name "
*
.java" ! -name "
*
Test
*
.java")
Back
|
FazBrowse Home
|
New Git URL