aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-06-10 01:38:11 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-06-10 01:38:11 +0200
commit9826a61c6637c15d3429b2ab63bde614313fdc03 (patch)
tree081cb72cf3692c36653849b87ec75488d5a7da04
parent8588eb42b905dda9cf6ff3cc8afd181485a24ec9 (diff)
downloadgit.replicant.us-master.zip
git.replicant.us-master.tar.gz
git.replicant.us-master.tar.bz2
Makefile: Also install htdocsHEADmaster
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index b226656..780ba45 100644
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,17 @@
INSTALL ?= install
DESTDIR ?= html
-TARGETS = \
- vm-source.html \
- index.html \
- index.css \
- COPYING \
+TARGETS := `git ls-files | grep -P -v README.txt`
.PHONY: help
help:
@echo "Usage:"
@echo -e "\tmake install DESTDIR=path/to/destdir"
-$(DESTDIR):
- mkdir -p $(DESTDIR)
-
.PHONY: install
-install: $(DESTDIR)
- $(INSTALL) -m644 $(TARGETS) -t $(DESTDIR)
+install:
+ install -m 755 -d $(DESTDIR)/htdocs/
+ @for target in $(TARGETS) ; do \
+ echo $(INSTALL) -m 644 $$target $(DESTDIR)/$$target ; \
+ $(INSTALL) -m 644 $$target $(DESTDIR)/$$target ; \
+ done