git.fiddlerwoaroof.com
Makefile
49601c31
 ASSET_DIRS = $(shell find assets/ -type d)
 ASSET_FILES = $(shell find assets/ -type f)
7e8592bd
 LW_PATH = $(shell which lw)
49601c31
 
50268fe5
 all: app.icns CJAWSAccess.app assets/accounts.json $(ASSET_DIRS) $(ASSET_FILES)
49601c31
 	rsync -arvh assets/ CJAWSAccess.app/Contents/Resources/
683ff82b
 	touch CJAWSAccess.app
 
49601c31
 CJAWSAccess.app: deliver.lisp src/*.lisp aws-access.asd addFonts.patch
 	/Applications/LispWorks\ 7.1\ \(64-bit\)/LispWorks\ \(64-bit\).app/Contents/MacOS/lispworks-7-1-0-amd64-darwin -build deliver.lisp
 	patch -N -p0 < addFonts.patch
 
50268fe5
 assets/accounts.json: accounts.yml
683ff82b
 	./flip-yaml.lisp accounts.yml
d362551c
 	mv accounts.json assets/
 	rm accounts.yml
683ff82b
 
 accounts.yml:
55a4b1ce
 	git archive --format=tar --remote=git@gitlab.cj.dev:operations-chapter/aws-department.git heads/master -- accounts.yaml | tar xO accounts.yaml > accounts.yml
683ff82b
 
 app.icns: icon/icon.svg
 	$(MAKE) --directory=icon
 	cp icon/icon.icns app.icns
7b921097
 
fa0619c4
 deploy: all cleanDmg
4054dd3a
 	npx appdmg dmg.json CJAWSAccess.dmg
fa0619c4
 
 cleanDmg:
 	rm -f CJAWSAccess.dmg
 
 clean: cleanDmg
50268fe5
 	rm -f assets/accounts.json
fa0619c4
 	rm -rf CJAWSAccess.app
7e8592bd
 
 dev:
 	cp $(LW_PATH) CJAWSAccess.app/Contents/MacOS/lw