fix makefiles slightly

This commit is contained in:
Arthur Lu
2025-02-11 00:46:44 +00:00
parent 90899ef9ba
commit c4b428f3ed
2 changed files with 6 additions and 4 deletions

View File

@@ -4,7 +4,6 @@ export DIST
build: src
clean: src
rm -r test/*
src:
$(MAKE) -C $@ $(MAKECMDGOALS)
@@ -12,8 +11,9 @@ src:
dev-init: # ubuntu only
apt install -y python3 openjdk-21-jre-headless
test:
test: build
mkdir -p test/world/datapacks/
cp dist/* test/world/datapacks/
cd test && java -Xmx1024M -Xms1024M -jar server.jar nogui
.PHONY: all src test
.PHONY: all src dev-init test

View File

@@ -12,4 +12,6 @@ clean:
rm -f "$(DIST)/$$d.zip" ; \
done
.PHONY: all $(SUBDIRS)
test: build
.PHONY: all $(SUBDIRS) clean test