Create makefile.yml

This commit is contained in:
imxyd 2022-01-21 19:58:25 +08:00 committed by GitHub
parent 3c063334a8
commit a4370ceae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

30
makefile.yml Normal file
View File

@ -0,0 +1,30 @@
export APP_VERSION := 3.5.0
ifeq ($(RELEASE),)
export APP_VERSION := $(APP_VERSION)-$(shell git describe --dirty --always)
endif
.PHONY: clean all nx pc dist-bin
all: nx pc
romfs:
@mkdir -p romfs
romfs/assets.zip : romfs assets
@rm -f romfs/assets.zip
@zip -rj romfs/assets.zip assets
dist-bin: romfs/assets.zip
$(MAKE) -f Makefile.nx dist-bin
nx: romfs/assets.zip
$(MAKE) -f Makefile.nx
pc: romfs/assets.zip
$(MAKE) -f Makefile.pc
clean:
@rm -Rf romfs
$(MAKE) -f Makefile.pc clean
$(MAKE) -f Makefile.nx clean