-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 917 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
26
BUNDLE = VerticalGlyphProperties.glyphsPalette
.PHONY: all
all: $(BUNDLE)/Contents/_CodeSignature/CodeResources
.PHONY: $(BUNDLE)
$(BUNDLE): $(BUNDLE)/Contents/_CodeSignature/CodeResources
SRC := $(shell find $(BUNDLE) -name '*.py')
$(BUNDLE)/Contents/_CodeSignature/CodeResources: $(SRC)
find $(BUNDLE) -name '*.pyc' -type f -exec rm '{}' \;
command -v postbuild-codesign $(BUNDLE) >/dev/null 2>&1 && postbuild-codesign $(BUNDLE)
command -v postbuild-notarize $(BUNDLE) >/dev/null 2>&1 && postbuild-notarize $(BUNDLE)
.PHONY: clean
clean:
rm -rf $(BUNDLE)/Contents/_CodeSignature
.PHONY: install
install:
[ -L "$(HOME)/Library/Application Support/Glyphs/Plugins/$(BUNDLE)" ] && rm "$(HOME)/Library/Application Support/Glyphs/Plugins/$(BUNDLE)" || true
ln -s "$(shell pwd)/$(BUNDLE)" "$(HOME)/Library/Application Support/Glyphs/Plugins/$(BUNDLE)"
.PHONY: test
test:
python -m unittest discover tests