diff options
| author | Rafael Laboissière <rafael@laboissiere.net> | 2025-06-25 12:50:44 +0200 |
|---|---|---|
| committer | Rafael Laboissière <rafael@laboissiere.net> | 2025-06-25 12:50:44 +0200 |
| commit | 6f5abae53de88ffbc2cf1e81455a7ee38b11d601 (patch) | |
| tree | 7350af4431897c7162b0ff78a13a753aabf5ce10 | |
| parent | bb7d647de14edd62636990337e76680a57cc7c59 (diff) | |
Only run install-www commands on the appropriate system
| -rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -14,6 +14,9 @@ build-stamp: $(BUILD) .PHONY: install-www install-www: build-stamp + @[ $(shell hostname -A | cut -d\ -f1) = $(REPOHOST) ] \ + || echo "Operation aborted: not on $(REPOHOST)" \ + && false mkdir -p $(WWWDIR) chown -R '$(USER):$(USER)' $(WWWDIR) install --mode=644 www/$(INDEX) www/$(GPGKEY) $(WWWDIR) |
