c1f2bb40 |
ASSET_DIRS = $(shell find assets/ -type d)
ASSET_FILES = $(shell find assets/ -type f)
|
2eed815c |
LW_PATH = $(shell which lw)
|
c1f2bb40 |
|
e742668c |
all: app.icns CJAWSAccess.app assets/accounts.json $(ASSET_DIRS) $(ASSET_FILES)
|
c1f2bb40 |
rsync -arvh assets/ CJAWSAccess.app/Contents/Resources/
|
5c521414 |
touch CJAWSAccess.app
|
c1f2bb40 |
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
|
e742668c |
assets/accounts.json: accounts.yml
|
5c521414 |
./flip-yaml.lisp accounts.yml
|
e742668c |
cp accounts.json assets/
|
5c521414 |
accounts.yml:
git archive --format=tar --remote=git@gitlab.cj.com:operations-chapter/aws-department.git heads/master -- accounts.yaml | tar xO accounts.yaml > ~/accounts.yml
app.icns: icon/icon.svg
$(MAKE) --directory=icon
cp icon/icon.icns app.icns
|
69e32358 |
|
594c16f1 |
deploy: all cleanDmg
|
f10f6a07 |
npx appdmg dmg.json CJAWSAccess.dmg
|
594c16f1 |
cleanDmg:
rm -f CJAWSAccess.dmg
clean: cleanDmg
|
e742668c |
rm -f assets/accounts.json
|
594c16f1 |
rm -rf CJAWSAccess.app
|
2eed815c |
dev:
cp $(LW_PATH) CJAWSAccess.app/Contents/MacOS/lw
|