[Travis] Added Makefile to the plugins folder to build all with one command.

This commit is contained in:
Maschell 2018-02-14 22:36:28 +01:00
parent b350d7e478
commit f8e8f7f52e
2 changed files with 15 additions and 8 deletions

View File

@ -55,10 +55,7 @@ script:
- make - make
- (cd loader && make) - (cd loader && make)
- (cd example_plugin && make) - (cd example_plugin && make)
- (cd plugins/padcon && make) - (cd plugins && make)
- (cd plugins/sdcafiine && make)
- (cd plugins/swipswapme && make)
- (cd plugins/hid_to_vpad && make)
before_deploy: before_deploy:
- mkdir -p "wiiu/apps/wiiupluginloader" - mkdir -p "wiiu/apps/wiiupluginloader"
@ -68,10 +65,7 @@ before_deploy:
- versiontag="$(./gitrev.sh)" - versiontag="$(./gitrev.sh)"
- (cd loader && make) - (cd loader && make)
- cp example_plugin/example_plugin.mod wiiu/plugins - cp example_plugin/example_plugin.mod wiiu/plugins
- cp plugins/padcon/padcon.mod wiiu/plugins - cp plugins/*.mod wiiu/plugins
- cp plugins/swipswapme/swipswapme.mod wiiu/plugins
- cp plugins/sdcafiine/sdcafiine.mod wiiu/plugins
- cp plugins/hid_to_vpad/hid_to_vpad.mod wiiu/plugins
- cp loader/meta/* wiiu/apps/wiiupluginloader - cp loader/meta/* wiiu/apps/wiiupluginloader
- cp loader/wiiupluginloader.elf wiiu/apps/wiiupluginloader - cp loader/wiiupluginloader.elf wiiu/apps/wiiupluginloader
- zip -r WiiUPluginLoader_$versiontag.zip wiiu - zip -r WiiUPluginLoader_$versiontag.zip wiiu

13
plugins/Makefile Normal file
View File

@ -0,0 +1,13 @@
SUBDIRS = $(shell ls -d */)
.PHONY: all clean
all:
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir -f Makefile; \
done
clean:
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir -f Makefile clean; \
done