-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (22 loc) · 719 Bytes
/
Makefile
File metadata and controls
25 lines (22 loc) · 719 Bytes
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
bs_installed := $(shell command -v bikeshed 2> /dev/null)
svgo_installed := $(shell command -v svgo 2> /dev/null)
.PHONY: all
all: index.html
index.html: index.bs
ifdef bs_installed
bikeshed spec index.bs
else
# Can't find a local version of Bikeshed. To install it, visit:
#
# https://tabatkins.github.io/bikeshed/#installing
#
# Trying to build the spec using the online API at: https://api.csswg.org/bikeshed/
# This will fail if you are not connected to the network.
curl https://api.csswg.org/bikeshed/ -F file=@index.bs > index.html
endif
.PHONY: optimize-svg
optimize-svg:
ifdef svgo_installed
# https://github.com/svg/svgo/issues/872
svgo --multipass --disable=mergePaths object-uml.svg
endif