Améliorations du code en ajoutant des patterns/regex + Amélioration du mode debug

This commit is contained in:
2025-02-04 16:27:07 +01:00
parent d8cd0c785b
commit 238a02796b
9 changed files with 72 additions and 25 deletions

View File

@@ -7,6 +7,7 @@ JARNAME = bakefile.jar
CLASSP = ./build
MANIFESTPATH = Manifest.MF
SOURCEDIR = ./src/
TESTDIR = ./tests/
SOURCES := $(shell find $(SOURCEDIR) -name '*.java')
@@ -14,21 +15,17 @@ all:
@make clean
@make compile
@make jar
@make run
compile:
@echo "Compiling..."
javac -cp $(CLASSP) -d $(BUILDDIR) $(SOURCES) -Xlint:unchecked -Xlint:deprecation
@echo "Done."
run:
@echo "Running..."
java -cp $(CLASSP):$(JARNAME) fr.monlouyan.bakefile.Main
@echo "Done."
clean:
@echo "Cleaning up..."
@rm -rf $(BUILDDIR)* $(DOCDIR)*
@rm -f $(JARNAME)
@find $(TESTDIR) -name "$(JARNAME)" -delete
@echo "Done."
javadoc:
@@ -39,4 +36,10 @@ javadoc:
jar:
@echo "Creating jar..."
@jar cfm $(JARNAME) $(MANIFESTPATH) -C $(BUILDDIR) fr/monlouyan/bakefile
@echo "Done."
@make deploy-tests
deploy-tests:
@echo "Deploying JAR to test directories..."
@find $(TESTDIR) -type d -exec cp $(JARNAME) {} \;
@echo "Done."