-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
96 lines (71 loc) · 2.3 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
88
89
90
91
92
93
94
95
96
EXTRA_DIST =
CLEANFILES =
###############################
# The session configuration
###############################
lightdm_sessiondir = $(datadir)/lightdm/remote-sessions
lightdm_session_DATA = \
remoteconfigure.desktop
%.desktop: %.desktop.in
@sed \
-e "s|\@pkgdatadir\@|$(pkgdatadir)|" \
-e "s|\@libexecdir\@|$(libexecdir)|" \
$< > $@
EXTRA_DIST += remoteconfigure.desktop.in
CLEANFILES += remoteconfigure.desktop
###############################
# The PAM session
###############################
pam_sessiondir = $(sysconfdir)/pam.d/
pam_session_DATA = \
lightdm-remote-remoteconfigure
EXTRA_DIST += lightdm-remote-remoteconfigure
###############################
# The session script
###############################
session_startdir = $(pkgdatadir)
session_start_SCRIPTS = \
remoteconfigure-session
remoteconfigure-session: remoteconfigure-session.in
@sed -e "s|\@pkgdatadir\@|$(pkgdatadir)|" $< > $@
@chmod +x $@
EXTRA_DIST += remoteconfigure-session.in
CLEANFILES += remoteconfigure-session
###############################
# The session wrapper
###############################
libexec_PROGRAMS = \
remoteconfigure-session-wrapper
remoteconfigure_session_wrapper_SOURCES = \
remoteconfigure-session-wrapper.c
remoteconfigure_session_wrapper_CFLAGS = \
-DPKGDATADIR="\"$(pkgdatadir)\"" \
-Wall -Werror
###############################
# Apparmor for session wrapper
###############################
apparmordir = $(sysconfdir)/apparmor.d/
apparmor_DATA = \
lightdm-remote-session-remoteconfigure
lightdm-remote-session-remoteconfigure: lightdm-remote-session-remoteconfigure.in
@sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
EXTRA_DIST += lightdm-remote-session-remoteconfigure.in
CLEANFILES += lightdm-remote-session-remoteconfigure
###############################
# Autostart Firefox
###############################
autostart_filedir = $(pkgdatadir)
autostart_file_DATA = \
firefox-remoteconfigure.desktop
EXTRA_DIST += firefox-remoteconfigure.desktop.in
CLEANFILES += firefox-remoteconfigure.desktop
###############################
# Firefox Start Script
###############################
firefox_startdir = $(pkgdatadir)
firefox_start_SCRIPTS = \
firefox-remoteconfigure.sh
EXTRA_DIST += firefox-remoteconfigure.sh
###############################
# Dist check stuff
###############################