-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
52 lines (40 loc) · 1.16 KB
/
Makefile.am
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
DISTCLEANFILES = \
journal-triggerd.1 \
index.html
ACLOCAL_AMFLAGS = -I m4
rulesdir=@rulesdir@
servicedir=@servicedir@
if USE_GIT_VERSION
_VERSION = `git describe --abbrev=4 --dirty`
DEFS += -DGIT_VERSION=\"$(_VERSION)\"
else
_VERSION = $(PACKAGE_VERSION)
endif
bin_PROGRAMS = journal-triggerd
AM_CFLAGS = \
-g \
-DDOCDIR='"$(docdir)"' \
${WARNING_CFLAGS}
journal_triggerd_CFLAGS = ${AM_CFLAGS} @GLIB2_CFLAGS@ @JOURNAL_CFLAGS@
journal_triggerd_LDADD = @GLIB2_LIBS@ @JOURNAL_LIBS@
journal_triggerd_SOURCES = \
main.c \
macros.h
dist_man_MANS = journal-triggerd.1
dist_doc_DATA = index.html \
HISTORY \
AUTHORS \
COPYING \
README.md
dist_service_DATA = journal-triggerd.service
EXTRA_DIST = \
journal-triggerd.pod
journal-triggerd.1: journal-triggerd.pod
$(AM_V_GEN)pod2man --center='Runs trigger on journal messages' --section=1 \
--release=$(_VERSION) journal-triggerd.pod journal-triggerd.1
index.html: journal-triggerd.1
$(AM_V_GEN)groff -T html -man journal-triggerd.1 > index.html
install-data-hook:
$(MKDIR_P) "$(DESTDIR)$(docdir)/html"
mv "$(DESTDIR)$(docdir)/index.html" "$(DESTDIR)$(docdir)/html/"
$(MKDIR_P) "$(DESTDIR)$(rulesdir)"