2018-02-02 15:35:22 +01:00
|
|
|
.PHONY: all switch 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
|
|
|
|
export VERSION_MINOR := 2
|
|
|
|
export VERSION_MICRO := 0
|
|
|
|
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
|
|
|
|
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
|