Adapt to unified Makefile with plugin support

This commit is contained in:
2024-09-19 16:27:34 +02:00
parent 2185ed9962
commit ba422400d9
7 changed files with 350 additions and 52 deletions

View File

@ -1,12 +1,3 @@
# Taken from: https://stackoverflow.com/questions/2214575/passing-arguments-to-make-run
# If the first argument is "new"...
ifeq (new,$(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "new"
NEW_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(NEW_ARGS):;@:)
endif
BIN := $(shell basename $$(pwd))
PLUGINS := $(wildcard modules/*)
@ -65,9 +56,6 @@ $(BIN): $(OBJS)
-include $(DEPS)
new:
@./newmodule $(NEW_ARGS)
modules: $(PLUGINS)
mkdir -p plugins
@for plug in $(PLUGINS) ;\