Compare commits
2 commits
4a0a12aeea
...
f97289f9c7
Author | SHA1 | Date | |
---|---|---|---|
f97289f9c7 | |||
871d782e6b |
1 changed files with 30 additions and 0 deletions
30
java_zip.mk
Normal file
30
java_zip.mk
Normal file
|
@ -0,0 +1,30 @@
|
|||
RM = rm -rf
|
||||
TAR = tar -cf
|
||||
CP = cp -r
|
||||
MKDIR = mkdir -p
|
||||
|
||||
SRC_DIR = src
|
||||
BIN_DIR = bin
|
||||
|
||||
ENTRY = App
|
||||
|
||||
ARCHIVE_NAME = nom
|
||||
|
||||
run: compilation
|
||||
run:
|
||||
java --enable-preview -cp $(BIN_DIR) $(ENTRY)
|
||||
|
||||
compilation:
|
||||
find $(SRC) -name "*.java" -print | xargs javac -d $(BIN_DIR)
|
||||
|
||||
all:
|
||||
run
|
||||
|
||||
clean:
|
||||
$(RM) $(BIN_DIR) "$(ARCHIVE_NAME).tar"
|
||||
|
||||
archive:
|
||||
$(MKDIR) "$(ARCHIVE_NAME)"
|
||||
$(CP) "$(SRC_DIR)" README.txt "$(ARCHIVE_NAME)"
|
||||
$(TAR) "$(ARCHIVE_NAME).tar" "$(ARCHIVE_NAME)"
|
||||
$(RM) "$(ARCHIVE_NAME)"
|
Loading…
Reference in a new issue