-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
87 lines (66 loc) · 2.09 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
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
82
83
84
85
86
87
## Process this file with automake to produce Makefile.in
NULL =
CFLAGS += -Wall -Werror
ACLOCAL_AMFLAGS = -I m4
sbin_PROGRAMS = nodm
dist_noinst_HEADERS = common.h \
dm.h \
log.h \
test.h \
vt.h \
xserver.h \
xsession.h \
xsession-child.h \
$(NULL)
libsources = common.c \
log.c \
vt.c \
xsession-child.c \
xserver.c \
xsession.c dm.c \
$(NULL)
testlibsources = $(libsources) \
test.c \
$(NULL)
AM_CPPFLAGS = $(X11_CFLAGS)
LIBS = $(PAM_LIBS) $(X11_LIBS)
nodm_SOURCES = $(libsources) \
nodm.c \
$(NULL)
nodm_CFLAGS = -DNODM_SESSION='"$(sbindir)/nodm"'
nodm.8: nodm
help2man --section=8 --name="X display manager for automatic logins" \
--no-info --include=nodm-man-extras ./$< > $@
man_MANS = nodm.8 \
$(NULL)
TESTS = test-internals test-xstart test-xsession
check_PROGRAMS = test-internals test-xstart test-xsession
test_xstart_SOURCES = $(testlibsources) \
test-xstart.c \
$(NULL)
test_xsession_SOURCES = $(testlibsources) \
test-xsession.c \
$(NULL)
test_internals_SOURCES = $(testlibsources) \
test-internals.c \
$(NULL)
EXTRA_DIST = test_nodm \
nodm-man-extras \
autogen.sh \
nodm.service.in \
$(NULL)
CLEANFILES = $(man_MANS) \
$(systemdsystemunit_DATA) \
$(NULL)
DISTCLEANFILES = Makefile.in \
aclocal.m4 \
config.h.in \
config/* \
configure \
$(NULL)
systemdsystemunitdir = $(prefix)/lib/systemd/system
systemdsystemunit_DATA = nodm.service
nodm.service: nodm.service.in
sed \
-e 's![@]sbindir[@]!${sbindir}!g' \
< $< > $@