Rename KOTLINOPTS to KOTLINFLAGS in Makefile.

This commit is contained in:
bʰedoh₂ swé 2024-02-17 16:29:33 +05:00
parent 2b5979bfad
commit 19267a0f87

View File

@ -13,7 +13,7 @@ SRCS := $(wildcard $(SRC_DIR)/*/*.kt)
CLS := $(SRCS:$(SRC_DIR)/%.kt=$(OUT_DIR)/%.class) CLS := $(SRCS:$(SRC_DIR)/%.kt=$(OUT_DIR)/%.class)
KOTLINC = kotlinc KOTLINC = kotlinc
KOTLINOPT = -cp $(HEADERS) -d $(OUT_DIR) -jvm-target 1.8 KOTLINFLAGS = -cp $(HEADERS) -d $(OUT_DIR) -jvm-target 1.8
.SUFFIXES: .kt .SUFFIXES: .kt
@ -23,7 +23,7 @@ all: translate
$(CLS): $(OUT_DIR)/%.class: $(SRC_DIR)/%.kt $(CLS): $(OUT_DIR)/%.class: $(SRC_DIR)/%.kt
mkdir -p build mkdir -p build
$(KOTLINC) $(KOTLINOPT) $< $(KOTLINC) $(KOTLINFLAGS) $<
rm -rf build/META-INF/ rm -rf build/META-INF/
clean: clean: