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