2018-10-17 03:41:06 +01:00
|
|
|
TOPTARGETS := all clean dist
|
2018-04-23 19:07:49 +01:00
|
|
|
|
2018-10-17 03:41:06 +01:00
|
|
|
all: fusee creport
|
2018-05-18 23:54:38 +01:00
|
|
|
fusee:
|
|
|
|
$(MAKE) -C $@ all
|
2018-04-23 19:07:49 +01:00
|
|
|
|
2018-10-17 03:41:06 +01:00
|
|
|
creport:
|
|
|
|
$(MAKE) -C stratosphere/creport all
|
|
|
|
|
2018-05-18 23:54:38 +01:00
|
|
|
clean:
|
|
|
|
$(MAKE) -C fusee clean
|
2018-10-17 03:41:06 +01:00
|
|
|
|
|
|
|
dist: fusee creport
|
|
|
|
$(eval MAJORVER = $(shell grep '\ATMOSPHERE_RELEASE_VERSION_MAJOR\b' common/include/atmosphere/version.h \
|
|
|
|
| tr -s [:blank:] \
|
|
|
|
| cut -d' ' -f3))
|
|
|
|
$(eval MINORVER = $(shell grep '\ATMOSPHERE_RELEASE_VERSION_MINOR\b' common/include/atmosphere/version.h \
|
|
|
|
| tr -s [:blank:] \
|
|
|
|
| cut -d' ' -f3))
|
|
|
|
$(eval MICROVER = $(shell grep '\ATMOSPHERE_RELEASE_VERSION_MICRO\b' common/include/atmosphere/version.h \
|
|
|
|
| tr -s [:blank:] \
|
|
|
|
| cut -d' ' -f3))
|
|
|
|
$(eval AMSVER = $(MAJORVER).$(MINORVER).$(MICROVER))
|
|
|
|
rm -rf atmosphere-$(AMSVER)
|
|
|
|
mkdir atmosphere-$(AMSVER)
|
|
|
|
mkdir atmosphere-$(AMSVER)/atmosphere
|
|
|
|
mkdir -p atmosphere-$(AMSVER)/atmosphere/titles/0100000000000036
|
|
|
|
cp fusee/fusee-secondary/fusee-secondary.bin atmosphere-$(AMSVER)/fusee-secondary.bin
|
|
|
|
cp common/defaults/BCT.ini atmosphere-$(AMSVER)/BCT.ini
|
|
|
|
cp common/defaults/loader.ini atmosphere-$(AMSVER)/atmosphere/loader.ini
|
|
|
|
cp stratosphere/creport/creport.nsp atmosphere-$(AMSVER)/atmosphere/titles/0100000000000036/exefs.nsp
|
|
|
|
cd atmosphere-$(AMSVER); zip -r ../atmosphere-$(AMSVER).zip ./*; cd ../;
|
|
|
|
rm -r atmosphere-$(AMSVER)
|
|
|
|
|
2018-04-23 19:07:49 +01:00
|
|
|
|
2018-05-18 23:54:38 +01:00
|
|
|
.PHONY: $(TOPTARGETS) fusee
|