aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 780ba4524e2878c8d4e220ca758316f19bad7126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
INSTALL ?= install
DESTDIR ?= html

TARGETS := `git ls-files | grep -P -v README.txt`

.PHONY: help
help:
	@echo "Usage:"
	@echo -e "\tmake install DESTDIR=path/to/destdir"

.PHONY: install
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