blob: bbe072513720517a0d9e1318a2acc4d16e01863f (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
topoutdir ?= .
topsrcdir ?= .
include $(topsrcdir)/automake.head.mk
PACKAGE = parabolaweb-utils
VERSION = 20160517
DESTDIR =
#prefix = /usr/local
prefix = /usr
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
#sbindir = $(exec_prefix)/sbin
sbindir = $(bindir)
#libexecdir = $(exec_prefix)/libexec
libexecdir = $(exec_prefix)/lib
#sysconfdir = $(prefix)/etc
sysconfdir = /etc/conf.d
systemddir = $(prefix)/lib/systemd/system
#uwsgidir = $(prefix)/etc/uwsgi
uwsgidir = /etc/uwsgi
pkglibexecdir = $(libexecdir)/parabolaweb-utils
pkgconffile = $(sysconfdir)/parabolaweb
CFLAGS += -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter
CPPFLAGS += -DSCRIPT_LOCATION='"$(pkglibexecdir)/parabolaweb-changepassword.real"'
ifeq ($(wildcard .git),)
include .srcfiles.mk
else
.srcfiles.mk: FORCE
@echo am_src_files = $(shell git ls-files) | ./write-ifchanged $@
-include $(srcdir)/.srcfiles.mk
endif
targets = \
$(sbindir)/parabolaweb-changepassword \
$(sbindir)/parabolaweb-reporead-inotify \
$(sbindir)/parabolaweb-update \
$(pkglibexecdir)/parabolaweb-changepassword.real \
$(systemddir)/parabolaweb-reporead-inotify.service \
$(uwsgidir)/parabolaweb.ini.example
am_gen_files = .srcfiles.mk
am_out_files = depends.txt $(notdir $(targets)) parabolaweb.conf
am_sys_files = $(targets) $(pkgconffile)
# Pattern rules
%: %.in
sed -e 's|@sbindir@|$(sbindir)|' -e 's|@pkgconffile@|$(pkgconffile)|' < $< > $@
$(DESTDIR)$(sbindir)/%: %
install -Dm755 $< $@
$(DESTDIR)$(pkglibexecdir)/%: %
install -Dm755 $< $@
$(DESTDIR)$(systemddir)/%.service: %.service
install -Dm644 $< $@
$(DESTDIR)$(uwsgidir)/%: %
install -Dm644 $< $@
# Specific rules
depends.txt: list-depends depends_static.txt
./$< > $@
$(DESTDIR)$(sbindir)/parabolaweb-changepassword: parabolaweb-changepassword
install -Dm4755 $< $@
$(DESTDIR)$(pkgconffile): parabolaweb.conf
install -Dm644 $< $@
.DELETE_ON_ERROR:
.PHONY: FORCE
include $(topsrcdir)/automake.tail.mk
|