M Makefile +13 -16
@@ 3,31 3,22 @@ DOMAIN=henry.precheur.org
all: style.css fonts.css log
./scratchpad < log
-install: glide
- go install
-
-scratchpad: glide
- go build
-
-glide:
- glide install
-
log:
curl -s http://${DOMAIN}/scratchpad/log > log
-style.css: style.css.in normalize.css
- cat normalize.css style.css.in > style.css
+style.css: style.css.in normalize.css fonts.css
+ cat normalize.css fonts.css style.css.in > style.css
fonts.css: \
font/Charter/regular.woff2 \
font/Charter/italic.woff2 \
font/Charter/bold-italic.woff2 \
- font/AnonymousPro/regular.woff2
+ font/Anonymous\ Pro/regular.woff2
(cd font; ../base64_css_fonts.sh \
Charter/regular.woff2 \
Charter/italic.woff2 \
Charter/bold-italic.woff2 \
- AnonymousPro/regular.woff2 \
+ Anonymous\ Pro/regular.woff2 \
) > fonts.css
serve: all
@@ 39,9 30,15 @@ serve: all
python -m SimpleHTTPServer
clean:
- -rm -rf 20[1-9]*.html index.html feed.atom 20[1-9]*/
+ -rm -rf 20[1-9]*.html index.html feed.atom 20[1-9]*/ style.css fonts.css
+
+release: scratchpad style.css
+ scp -C scratchpad style.css henry@henry.precheur.org:/var/www/${DOMAIN}/scratchpad/
-release: scratchpad style.css fonts.css
- scp -C scratchpad style.css fonts.css henry@henry.precheur.org:/var/www/${DOMAIN}/scratchpad/
+scratchpad: glide
+ go build 'hg.sr.ht/~henryprecheur/scratchpad'
+
+glide:
+ glide install
.PHONY: clean relog all
M font/AnonymousPro/regular.woff2 b/font/Anonymous => o/regular.woff2 +0 -0
M template.go +0 -1
@@ 10,7 10,6 @@ const (
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{block "title" .}}Scratch pad{{end}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" type='text/css' href="{{block "stylePrefix" .}}{{end}}fonts.css">
<link rel="stylesheet" type='text/css' href="{{block "stylePrefix" .}}{{end}}style.css">
</head>
<body>