summaryrefslogtreecommitdiff
path: root/Makefile
blob: c3359dd36f2fe56e47069894e51e7e28b8685057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
prefix = /usr
sbindir = $(prefix)/sbin
rcdir = /etc/rc.d
systemddir = $(prefix)/lib/systemd/system
confdir = /etc/conf.d

all: depends.txt

install: \
	$(DESTDIR)$(sbindir)/parabolaweb-download \
	$(DESTDIR)$(sbindir)/parabolaweb-update \
	$(DESTDIR)$(sbindir)/parabolaweb-fcgi \
	$(DESTDIR)$(confdir)/parabolaweb \
	$(DESTDIR)$(rcdir)/parabolaweb \
	$(DESTDIR)$(systemddir)/parabolaweb.service

depends.txt: list-depends depends_static.txt
	bash $< > $@

$(DESTDIR)$(sbindir)/%: %
	install -Dm755 $< $@

$(DESTDIR)$(rcdir)/%: %.rc
	install -Dm755 $< $@

$(DESTDIR)$(systemddir)/%.service: %.service
	install -Dm644 $< $@

$(DESTDIR)$(confdir)/%: %.conf
	install -Dm644 $< $@