-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
26 lines (18 loc) · 600 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
EXTENSION = Dig.alfredworkflow
BUNDLEID = pjkh.dig
VERSION = 1.2
SOURCE_FILES = dig.sh icon.png icons info.plist
PKG_FILES = $(SOURCE_FILES)
WORKFLOW_DIR = $(HOME)/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows
INSTALL_DIR = `grep -l -- ">$(BUNDLEID)<" "$(WORKFLOW_DIR)"/*/info.plist | sed 's/\/info.plist//'`
all: $(EXTENSION)
$(EXTENSION): $(SOURCE_FILES) VERSION
zip -rT $(EXTENSION) $(PKG_FILES)
VERSION:
touch info.plist
clean:
rm -rf $(EXTENSION)
test:
@roundup tests/test_*
local-install:
[[ -d "$(INSTALL_DIR)" ]] && cp -r $(PKG_FILES) "$(INSTALL_DIR)/"