2018-08-15 19:15:49 +02:00
|
|
|
.PHONY: all nro 3dsx cia clean linux
|
2014-11-23 23:39:00 +01:00
|
|
|
|
2016-06-15 09:44:49 +02:00
|
|
|
export GITREV := $(shell git rev-parse HEAD 2>/dev/null | cut -c1-8)
|
2016-09-17 16:38:20 +02:00
|
|
|
export VERSION_MAJOR := 2
|
2018-09-24 15:45:27 +02:00
|
|
|
export VERSION_MINOR := 3
|
2019-09-15 22:34:35 +02:00
|
|
|
export VERSION_MICRO := 1
|
2016-09-17 16:38:20 +02:00
|
|
|
export VERSION := $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)
|
2016-01-22 21:42:38 +01:00
|
|
|
|
2016-06-15 09:44:49 +02:00
|
|
|
ifneq ($(strip $(GITREV)),)
|
|
|
|
export VERSION := $(VERSION)-$(GITREV)
|
|
|
|
endif
|
|
|
|
|
2018-02-27 15:27:16 +01:00
|
|
|
all:
|
|
|
|
@echo please choose 3dsx, cia, linux, or nro
|
2014-11-23 23:39:00 +01:00
|
|
|
|
2019-09-15 22:34:35 +02:00
|
|
|
release:
|
|
|
|
# can't let these three run in parallel with each other due to using same
|
|
|
|
# ftpd.elf file name
|
|
|
|
@$(MAKE) -f Makefile.switch all
|
|
|
|
@$(MAKE) -f Makefile.3ds 3dsx
|
|
|
|
@$(MAKE) -f Makefile.3ds cia
|
|
|
|
@xz -c <ftpd.3dsx >ftpd.3dsx.xz
|
|
|
|
@xz -c <ftpd.cia >ftpd.cia.xz
|
|
|
|
@xz -c <ftpd.nro >ftpd.nro.xz
|
|
|
|
|
2018-02-27 15:27:16 +01:00
|
|
|
nro:
|
2018-02-02 15:35:22 +01:00
|
|
|
@$(MAKE) -f Makefile.switch all
|
|
|
|
|
2016-06-09 05:23:01 +02:00
|
|
|
3dsx:
|
|
|
|
@$(MAKE) -f Makefile.3ds 3dsx
|
|
|
|
|
|
|
|
cia:
|
|
|
|
@$(MAKE) -f Makefile.3ds cia
|
2018-02-02 15:35:22 +01:00
|
|
|
|
2014-11-25 07:13:47 +01:00
|
|
|
linux:
|
|
|
|
@$(MAKE) -f Makefile.linux
|
2014-11-23 23:39:00 +01:00
|
|
|
|
|
|
|
clean:
|
2018-02-02 15:35:22 +01:00
|
|
|
@$(MAKE) -f Makefile.switch clean
|
2014-11-25 07:13:47 +01:00
|
|
|
@$(MAKE) -f Makefile.3ds clean
|
|
|
|
@$(MAKE) -f Makefile.linux clean
|
2019-09-15 22:34:35 +02:00
|
|
|
@$(RM) ftpd.3dsx.xz ftpd.cia.xz ftpd.nro.xz
|