-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile.am
147 lines (126 loc) · 3.11 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
ACLOCAL_AMFLAGS = -I m4
doc_DATA = \
ABOUT-NLS \
AUTHORS \
COPYING \
CHANGES.md \
CHANGES-1.x.md \
INSTALL \
LICENSE \
NOTICE \
README.md \
DEVELOPING.md \
CONTRIBUTING.md
EXTRA_DIST = \
$(doc_DATA) \
autogen.sh \
config.rpath \
daemon/cups-browsed.service \
daemon/cups-browsed-upstart.conf
# =========
# utilities
# =========
pkgutilsdir = $(bindir)
pkgutils_PROGRAMS =
# ========
# Backends
# ========
pkgbackenddir = $(CUPS_SERVERBIN)/backend
pkgbackend_PROGRAMS = implicitclass
implicitclass_SOURCES = \
backend/implicitclass.c
implicitclass_LDADD = \
$(LIBCUPSFILTERS_LIBS) \
$(LIBPPD_LIBS) \
$(CUPS_LIBS)
implicitclass_CFLAGS = \
$(LIBCUPSFILTERS_CFLAGS) \
$(LIBPPD_CFLAGS) \
$(CUPS_CFLAGS)
# ===========
# CUPS Config
# ===========
pkgcupsserverrootdir = $(CUPS_SERVERROOT)
pkgcupsserverroot_DATA = \
daemon/cups-browsed.conf
# ============
# cups-browsed
# ============
cups_notifier_sources = \
cups-notifier.c \
cups-notifier.h
$(cups_notifier_sources): daemon/org.cups.cupsd.Notifier.xml
gdbus-codegen \
--interface-prefix org.cups.cupsd \
--c-namespace Cups \
--generate-c-code cups-notifier \
daemon/org.cups.cupsd.Notifier.xml
sbin_PROGRAMS = \
cups-browsed
cups_browsed_SOURCES = \
daemon/cups-browsed.c
nodist_cups_browsed_SOURCES = \
$(cups_notifier_sources)
cups_browsed_CFLAGS = \
$(LIBCUPSFILTERS_CFLAGS) \
$(LIBPPD_CFLAGS) \
$(CUPS_CFLAGS) \
$(AVAHI_CFLAGS) \
$(AVAHI_GLIB_CFLAGS) \
$(GLIB_CFLAGS) \
$(GIO_CFLAGS) \
$(GIO_UNIX_CFLAGS)
cups_browsed_CXXFLAGS = $(cups_browsed_CFLAGS)
cups_browsed_LDADD = \
$(LIBCUPSFILTERS_LIBS) \
$(LIBPPD_LIBS) \
$(CUPS_LIBS) \
$(AVAHI_LIBS) \
$(AVAHI_GLIB_LIBS) \
$(GLIB_LIBS) \
$(GIO_LIBS) \
$(GIO_UNIX_LIBS)
initrcdir = $(INITDDIR)
initrc_SCRIPTS = daemon/cups-browsed
cupsbrowsedmanpages = \
daemon/cups-browsed.8 \
daemon/cups-browsed.conf.5
man_MANS = $(cupsbrowsedmanpages)
EXTRA_DIST += daemon/cups-browsed.in \
$(cupsbrowsedmanpages) \
daemon/org.cups.cupsd.Notifier.xml
BUILT_SOURCES = $(cups_notifier_sources)
CLEANFILES = $(BUILT_SOURCES) $(GENERATED_DEFS)
# ================================
# Tests ("make test"/"make check")
# ================================
TESTS = \
test/run-tests.sh
EXTRA_DIST += \
test/run-tests.sh \
test/test.convs \
test/testhp.ppd \
test/testps.ppd
distclean-local:
rm -rf *.cache *~
install-exec-hook:
$(INSTALL) -d -m 755 $(DESTDIR)$(pkgbackenddir)
install-data-hook:
if RCLINKS
for level in $(RCLEVELS); do \
$(INSTALL) -d -m 755 $(DESTDIR)$(INITDIR)/rc$${level}.d; \
$(LN_S) -f ../init.d/cups-browsed $(DESTDIR)$(INITDIR)/rc$${level}.d/S$(RCSTART)cups-browsed; \
$(LN_S) -f ../init.d/cups-browsed $(DESTDIR)$(INITDIR)/rc$${level}.d/K$(RCSTOP)cups-browsed; \
done; \
$(INSTALL) -d -m 755 $(DESTDIR)$(INITDIR)/rc0.d; \
$(LN_S) -f ../init.d/cups-browsed $(DESTDIR)$(INITDIR)/rc0.d/K$(RCSTOP)cups-browsed;
endif
chmod 700 $(DESTDIR)/$(pkgbackenddir)/implicitclass
uninstall-hook:
if RCLINKS
if test "x$(INITDIR)" != x; then \
$(RM) $(DESTDIR)$(BUILDROOT)$(INITDIR)/rc?.d/[SK]??cups-browsed || :; \
rmdir $(DESTDIR)$(BUILDROOT)$(INITDIR)/rc?.d || :;\
fi
endif
SUBDIRS =