generated from privacycg/template
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
31 lines (23 loc) · 931 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
29
30
31
# This Makefile assumes you have a local install of bikeshed. Like any
# other Python tool, you install it with pip:
#
# python3 -m pip install bikeshed && bikeshed update
# It also assumes you have doctoc installed. This is a tool that
# automatically generates Table of Contents for Markdown files. It can
# be installed like any other NPM module:
#
# npm install -g doctoc
.PHONY: all publish clean update-explainer-toc
.SUFFIXES: .bs .html
publish: build/index.html build/images/storage-access-prompt.png
all: publish update-explainer-toc
clean:
rm -rf build *~
update-explainer-toc: README.md Makefile
doctoc $< --title "## Table of Contents" > /dev/null
build/index.html: storage-access.bs Makefile
mkdir -p build
bikeshed --die-on=warning spec $< $@
build/images/storage-access-prompt.png: images/storage-access-prompt.png Makefile
mkdir -p build/images
cp images/storage-access-prompt.png build/images