-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
28 lines (21 loc) · 821 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
27
28
ASSETS_ZIP = Asset-Package_04282023.ca9655a386a46bda0b6238cca2651e8f27fcb5c9.zip
UNAME:=$(shell uname)
ifeq ($(UNAME), Darwin)
INKSCAPE_DIR := $(HOME)/Library/Application\ Support/org.inkscape.Inkscape/config/inkscape
else
INKSCAPE_DIR := $(HOME)/.config/inkscape
endif
all: clean build-symbols install-templates install-symbols
clean: clean-templates clean-symbols
clean-templates:
rm -Rfv $(INKSCAPE_DIR)/templates/aws-architect
clean-symbols:
rm -Rfv $(INKSCAPE_DIR)/symbols/aws-architect
clean-awslab-repo-cache:
rm -Rfv ./aws-inkscape-symbols/awslabs-repo
install-symbols:
rsync -av ./aws-inkscape-symbols/target/ $(INKSCAPE_DIR)/symbols/aws-architect/
install-templates:
rsync -av templates/ $(INKSCAPE_DIR)/templates/aws-architect/
build-symbols:
cd ./aws-inkscape-symbols; ./build.sh $(ASSETS_ZIP)