SAE32_2022/Makefile

43 lines
979 B
Makefile
Raw Normal View History

2023-01-05 18:43:32 +01:00
# COMMANDES
JAVA = java
JAVAC = javac
JAVADOC = javadoc
OPTIONSDOCS = -d docs -private -public -protected -noqualifier all
OPTIONS = -d build -Xlint:unchecked -Xlint:deprecation
EXT = .java
# CHEMINS
SRC = src/
BUILD = build/
DOCS = docs/
CORE = Core
GraphicsPACKAGE = Graphics/
2023-01-08 05:05:57 +01:00
GraphicsPackageType = Graphics/Type/
2023-01-05 18:43:32 +01:00
ConsolePACKAGE = Console/
2023-01-08 05:05:57 +01:00
# POUR ALLER PLUS VITE
ALL = $(SRC)*$(EXT) $(SRC)$(ConsolePACKAGE)*$(EXT) $(SRC)$(GraphicsPACKAGE)*$(EXT) $(SRC)$(GraphicsPackageType)*$(EXT)
2023-01-05 18:43:32 +01:00
# LE FICHIER JSON (Pour mon test)
JSON = /home/bilal-linux/toFormat.json
.PHONY: console graphics clean docs
console:
make clean
mkdir build && mkdir docs
$(JAVAC) $(OPTIONS) $(ALL)
cd build && $(JAVA) $(CORE) $(JSON) && cd ..
graphics:
make clean
mkdir build && mkdir docs
$(JAVAC) $(OPTIONS) $(ALL)
cd build && $(JAVA) $(CORE) && cd ..
clean:
rm -rf $(BUILD) && rm -rf $(DOCS)
docs:
rm -rf $(BUILD)*
2023-01-05 03:22:24 +01:00
$(JAVADOC) $(OPTIONSDOCS) $(ALL)