diff --git a/java_zip.mk b/java_zip.mk index eeb771c..2d2d0ba 100644 --- a/java_zip.mk +++ b/java_zip.mk @@ -7,17 +7,23 @@ PASTE = xclip -o SRC_DIR = src BIN_DIR = bin +JAVA_ARGS = --enable-preview -enableassertions +JAVAC_ARGS = -Xlint:unchecked + ENTRY := App +ARGV := ARCHIVE_NAME = nom ARCHIVE_EXT = tar.gz +EXTRA_FILES := + run: compilation run: - java --enable-preview -cp $(BIN_DIR) $(ENTRY) + java $(JAVA_ARGS) --class-path $(BIN_DIR) $(ENTRY) $(ARGV) compilation: - find $(SRC_DIR) -name "*.java" -print | xargs javac -d $(BIN_DIR) + find $(SRC_DIR) -name "*.java" -print | xargs javac $(JAVAC_ARGS) -d $(BIN_DIR) paste: mkdir -p $(SRC_DIR) @@ -31,6 +37,6 @@ clean: archive: $(MKDIR) "$(ARCHIVE_NAME)" - $(CP) "$(SRC_DIR)" README.txt "$(ARCHIVE_NAME)" + $(CP) $(EXTRA_FILES) "$(SRC_DIR)" "README.txt" "$(ARCHIVE_NAME)" $(TAR) "$(ARCHIVE_NAME).$(ARCHIVE_EXT)" "$(ARCHIVE_NAME)" $(RM) "$(ARCHIVE_NAME)"