flashcard-archive/archive/r4i-gold.com/old/Makefile
lifehackerhansol e8f78c0956
Makefile: use $(CURDIR) directly without $(shell pwd)
This fixes building on macOS.
2024-10-03 13:52:05 -07:00

24 lines
923 B
Makefile

.PHONY: package
export TOPDIR := $(CURDIR)
export BASE := r4i-gold.com/$(shell basename $(CURDIR))
export OUT := $(TOPDIR)/../../../out
export COMMON := $(TOPDIR)/../../../common-kernels
package: directory r4i-gold.com_Gold_3DS_RTS.zip r4i-gold.com_V1.4.1-1.4.4_DEMON_1.80.zip r4i-gold.com_V1.4.1-1.4.4_FWUpdate-1.4.4.zip r4i-gold.com_Pro_2013_Wood_R4_1.51.zip
directory:
mkdir -p $(OUT)/$(BASE)
r4i-gold.com_Gold_3DS_RTS.zip: directory
cd $(TOPDIR)/r4i-gold.com_Gold_3DS_RTS && zip -r $(OUT)/$(BASE)/$@ *
r4i-gold.com_V1.4.1-1.4.4_DEMON_1.80.zip: directory
cd $(TOPDIR)/r4i-gold.com_V1.4.1-1.4.4_DEMON_1.80 && zip -r $(OUT)/$(BASE)/$@ *
r4i-gold.com_V1.4.1-1.4.4_FWUpdate-1.4.4.zip: directory
cd $(TOPDIR)/r4i-gold.com_V1.4.1-1.4.4_FWUpdate-1.4.4 && zip -r $(OUT)/$(BASE)/$@ *
r4i-gold.com_Pro_2013_Wood_R4_1.51.zip: directory
cd $(TOPDIR)/r4i-gold.com_Pro_2013_Wood_R4_1.51 && zip -r $(OUT)/$(BASE)/$@ *