sys-patch/Makefile

24 lines
471 B
Makefile
Raw Normal View History

MAKEFILES := sysmod overlay
TARGETS := $(foreach dir,$(MAKEFILES),$(CURDIR)/$(dir))
2023-05-20 21:52:47 +02:00
all: $(TARGETS)
@mkdir -p out/
@cp -R sysmod/out/* out/
@cp -R overlay/out/* out/
2023-05-20 21:52:47 +02:00
.PHONY: $(TARGETS)
2023-05-20 21:52:47 +02:00
$(TARGETS):
@$(MAKE) -C $@
2023-05-20 21:52:47 +02:00
clean:
@rm -rf out
@for i in $(TARGETS); do $(MAKE) -C $$i clean || exit 1; done;
2023-05-20 21:52:47 +02:00
dist: all
@for i in $(TARGETS); do $(MAKE) -C $$i dist || exit 1; done;
2023-05-20 21:52:47 +02:00
@echo making dist ...
2023-05-20 21:58:07 +02:00
@rm -f sys-patch.zip
2023-05-20 21:52:47 +02:00
@cd out; zip -r ../sys-patch.zip ./*; cd ../