blob: ab8cf3d5dca450d965d14fcb68075c1a9cd29ac4 (
about) (
plain)
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
32
33
34
35
36
37
|
# SPDX-License-Identifier: CC0-1.0
# Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
#
# Available under the terms of Creative Commons Zero v1.0 Universal.
GUIX ?= guix
ifdef WEBSITE
all: $(WEBSITE)/en/index.html
$(WEBSITE)/en/index.html: $(WEBSITE)/index.html
sed 's/type="checkbox">/type="checkbox" checked>/' $< > $@
ifdef DEST
install: $(WEBSITE)/en/index.html
mkdir -p "$(DEST)"/static
cp -r ./$(WEBSITE)/* "$(DEST)"
cp ./common-static-assets/* "$(DEST)"/static
cp ./LICENSES/LicenseRef-Normalize-CSS-MIT.txt \
$(DEST)/static/normalize-mit-license.txt
cp ./LICENSES/CC0-1.0.txt $(DEST)/static/cc0-1.0.txt
endif
else
all:
$(MAKE) all WEBSITE=sheets
$(MAKE) all WEBSITE=pray
endif
build-sheets-websites:
$(MAKE) clean
$(GUIX) build -f guix.scm
clean:
rm -f sheets/en/index.html pray/en/index.html
.PHONY: all install build-sheets-websites clean
|