diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-12-10 13:16:48 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-12-10 13:16:48 +0100 |
commit | e4bb845655ccc4c0788336b140845b051bd661a5 (patch) | |
tree | 1c2cdfabe95f42bd1ef2f608ddf29c7e41f24c6b /Makefile | |
parent | 20ec27c878cb4dc571ffb789adb62320c56b4e24 (diff) | |
download | sheets-websites-e4bb845655ccc4c0788336b140845b051bd661a5.tar.gz sheets-websites-e4bb845655ccc4c0788336b140845b051bd661a5.zip |
make Makefile more convenient for manual use
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -4,19 +4,15 @@ # # 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 +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)" @@ -24,8 +20,18 @@ install: $(WEBSITE)/en/index.html 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 $(WEBSITE)/en/index.html + rm -f sheets/en/index.html pray/en/index.html -.PHONY: all install clean +.PHONY: all install build-sheets-websites clean |