# SPDX-License-Identifier: CC0-1.0 # Copyright (C) 2022 Wojtek Kosior # # 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