FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
basic-java-11-quickstart/Makefile at main · java-cli-apps/basic-java-11-quickstart · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
java-cli-apps
/
basic-java-11-quickstart
Public archive
forked from
java-cli-apps/basic-java-22-quickstart
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
basic-java-11-quickstart
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (32 loc) · 1.29 KB
Breadcrumbs
basic-java-11-quickstart
/
Makefile
Copy path
File metadata and controls
42 lines (32 loc) · 1.29 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
help
:
#
# Afficher l'aide
@grep -E
'
^[a-zA-Z_-]+:.*?## .*$$
'
$(
MAKEFILE_LIST
)
\
|
awk
'
BEGIN {FS = ":.*?## "}; { printf("\033[36m%-20s\033[0m %s\n", $$1, $$2) }
'
package
: build
#
# Packager l'application dans un fichier .zip
cd
$(
BUILD
)
\
&&
zip --quiet --recurse-paths
$(
APP_NAME
)
.zip
$(
APP_DIR
)
install
: .check-install-dir
#
# Installer le package de l'application
unzip -q -d
$(
DEST_DIR
)
$(
BUILD
)
/
$(
APP_NAME
)
.zip
build
:
#
# Construire l'application
mkdir --parents
$(
BUILD_APP
)
cp --update --recursive src 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
)
test
:
#
# Tester l'application localement
./bin/
$(
STARTER_APP
)
.sh
test-from-java
:
#
# Tester l'application localement (en lançant le fichier .java)
./src/
$(
STARTER_APP
)
.java
test-install
: .check-install-dir
#
# Tester l'application installée
PATH=
$(
DEST_DIR
)
/
$(
APP_DIR
)
/bin:
$(
PATH
)
$(
APP_NAME
)
.sh
.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
Back
|
FazBrowse Home
|
New Git URL