blob: 79f800e64515f8957333140dc4afb11a914b76ed (
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
|
# 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.
ifndef WEBSITE
$(error `WEBSITE` not defined)
endif
ifndef DEST
$(error `DEST` not defined)
endif
all: $(WEBSITE)/en/index.html
$(WEBSITE)/en/index.html: $(WEBSITE)/index.html
sed 's/type="checkbox">/type="checkbox" checked>/' $< > $@
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
clean:
rm -f $(WEBSITE)/en/index.html
.PHONY: all install clean
|