blob: 4abd3a567c46362d093f6f7e4d8aad8bde9ec835 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
prefix = /usr
exec_prefix = $(prefix)
sbindir = $(exec_prefix)/sbin
libexecdir = $(exec_prefix)/lib
systemddir = $(prefix)/lib/systemd/system
confdir = /etc/conf.d
pkglibexecdir = $(libexecdir)/parabolaweb-utils
CFLAGS += -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter
CPPFLAGS += -DSCRIPT_LOCATION='"$(pkglibexecdir)/parabolaweb-changepassword.real"'
all: depends.txt parabolaweb-changepassword
install: \
$(DESTDIR)$(sbindir)/parabolaweb-changepassword \
$(DESTDIR)$(sbindir)/parabolaweb-fcgi \
$(DESTDIR)$(sbindir)/parabolaweb-reporead-inotify \
$(DESTDIR)$(sbindir)/parabolaweb-update \
$(DESTDIR)$(confdir)/parabolaweb \
$(DESTDIR)$(pkglibexecdir)/parabolaweb-changepassword.real \
$(DESTDIR)$(systemddir)/parabolaweb.service \
$(DESTDIR)$(systemddir)/parabolaweb-reporead-inotify.service
depends.txt: list-depends depends_static.txt
bash $< > $@
%.service: %.service.in
sed 's|@sbindir@|$(sbindir)|' < $< > $@
$(DESTDIR)$(sbindir)/%: %
install -Dm755 $< $@
$(DESTDIR)$(sbindir)/parabolaweb-changepassword: parabolaweb-changepassword
install -Dm6755 $< $@
$(DESTDIR)$(pkglibexecdir)/parabolaweb-changepassword.real: parabolaweb-changepassword.sh
install -Dm755 $< $@
$(DESTDIR)$(systemddir)/%.service: %.service
install -Dm644 $< $@
$(DESTDIR)$(confdir)/%: %.conf
install -Dm644 $< $@
|