mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 02:47:56 +01:00
Split Makfile and move workflow to Makefile (#88)
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
This commit is contained in:
parent
662f1a94e4
commit
b669420287
40 changed files with 800 additions and 665 deletions
23
test/Makefile
Normal file
23
test/Makefile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
all: $(filter-out README.md Makefile,$(wildcard *))
|
||||
|
||||
$(filter-out README.md Makefile,$(wildcard *)):
|
||||
$(eval DIR=$(firstword $(subst /, ,$@)))
|
||||
$(MAKE) -w -C $(DIR)
|
||||
|
||||
$(filter-out README.md Makefile,$(wildcard */*)):
|
||||
$(eval DIR=$(firstword $(subst /, ,$@)))
|
||||
$(eval TARGET=$(subst $(DIR)/,,$@))
|
||||
$(MAKE) -w -C $(DIR) $(TARGET)
|
||||
|
||||
.DEFAULT:
|
||||
$(eval DIR=$(firstword $(subst /, ,$@)))
|
||||
$(if $(filter-out $(DIR),$@), $(eval TARGET=$(subst $(DIR)/,,$@)),$(eval TARGET=))
|
||||
$(MAKE) -w -C $(DIR) $(TARGET)
|
||||
|
||||
install-deps:
|
||||
$(foreach DIR,$(filter-out README.md Makefile,$(wildcard *)),$(MAKE) -w -C $(DIR) install-deps;)
|
||||
|
||||
clean:
|
||||
$(foreach DIR,$(filter-out README.md Makefile,$(wildcard *)),$(MAKE) -w -C $(DIR) clean;)
|
||||
|
||||
.PHONY: all $(filter-out README.md Makefile,$(wildcard *)) $(filter-out README.md Makefile,$(wildcard */*))
|
||||
Loading…
Add table
Add a link
Reference in a new issue