]> git.meshlink.io Git - catta/blob - Makefile.am
Add pkg-config files for avahi-qt
[catta] / Makefile.am
1 # $Id$
2
3 # This file is part of avahi.
4 #
5 # avahi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2 of the
8 # License, or (at your option) any later version.
9 #
10 # avahi is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 # License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with avahi; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 # USA.
19
20 ACLOCAL_AMFLAGS = -I common
21
22 include $(srcdir)/common/doxygen.mk
23
24 EXTRA_DIST = \
25         autogen.sh \
26         bootstrap.sh \
27         LICENSE \
28         $(DX_CONFIG) \
29         docs/INSTALL \
30         docs/TODO \
31         docs/NEWS \
32         docs/README \
33         docs/DBUS-API \
34         docs/AUTHORS \
35         docs/HACKING \
36         docs/overview.dia \
37         docs/server-states.dia \
38         docs/avahi-poll.dia \
39         avahi-core.pc.in \
40         avahi-client.pc.in \
41         avahi-glib.pc.in
42
43 SUBDIRS = \
44         common \
45         avahi-common \
46         avahi-glib \
47         avahi-core \
48         avahi-discover-standalone \
49         avahi-qt \
50         avahi-client \
51         avahi-daemon \
52         initscript \
53         avahi-dnsconfd \
54         avahi-utils \
55         examples \
56         man \
57         tests \
58         service-type-database
59
60 DX_INPUT = \
61         $(srcdir)/avahi-common/cdecl.h \
62         $(srcdir)/avahi-core/core.h \
63         $(srcdir)/avahi-common/address.h \
64         $(srcdir)/avahi-core/rr.h \
65         $(srcdir)/avahi-common/strlst.h \
66         $(srcdir)/avahi-common/alternative.h \
67         $(srcdir)/avahi-core/log.h \
68         $(srcdir)/avahi-common/defs.h \
69         $(srcdir)/avahi-client/client.h \
70         $(srcdir)/avahi-common/error.h \
71         $(srcdir)/avahi-common/malloc.h \
72         $(srcdir)/avahi-common/domain.h \
73         $(srcdir)/avahi-common/gccmacro.h \
74         $(srcdir)/avahi-common/watch.h \
75         $(srcdir)/avahi-common/simple-watch.h \
76         $(srcdir)/avahi-glib/glib-watch.h \
77         $(srcdir)/avahi-glib/glib-malloc.h \
78         $(srcdir)/avahi-common/timeval.h \
79         $(srcdir)/avahi-common/dbus.h \
80         $(srcdir)/avahi-qt/qt-watch.h
81
82 DX_EXAMPLE_PATH = $(srcdir)/examples
83
84 DX_EXAMPLE_PATTERNS = *.c
85
86 pkgconfigdir = $(libdir)/pkgconfig
87 pkgconfig_DATA = avahi-core.pc
88
89 avahi-core.pc: avahi-core.pc.in
90         sed -e 's,@prefix\@,$(prefix),g' \
91             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
92
93 CLEANFILES = avahi-core.pc
94
95 if HAVE_DBUS
96
97 pkgconfig_DATA += avahi-client.pc
98
99 avahi-client.pc: avahi-client.pc.in
100         sed -e 's,@prefix\@,$(prefix),g' \
101             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
102
103 CLEANFILES += avahi-client.pc
104
105 endif
106
107 if HAVE_GLIB
108
109 pkgconfig_DATA += avahi-glib.pc
110
111 avahi-glib.pc: avahi-glib.pc.in
112         sed -e 's,@prefix\@,$(prefix),g' \
113             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
114
115 CLEANFILES += avahi-glib.pc
116
117 endif
118
119 if HAVE_QT3
120
121 pkgconfig_DATA += avahi-qt3.pc
122
123 avahi-qt3.pc: avahi-qt3.pc.in
124         sed -e 's,@prefix\@,$(prefix),g' \
125             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
126
127 CLEANFILES += avahi-qt3.pc
128
129 endif
130
131 if HAVE_QT4
132
133 pkgconfig_DATA += avahi-qt4.pc
134
135 avahi-qt4.pc: avahi-qt4.pc.in
136         sed -e 's,@prefix\@,$(prefix),g' \
137             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
138
139 CLEANFILES += avahi-qt4.pc
140
141 endif
142
143
144 MOSTLYCLEANFILES = $(DX_CLEANFILES)
145
146 homepage:
147         $(MAKE) -C man
148         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
149             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
150             fdo:public_html/
151         rm -rf doxygen
152         $(MAKE) doxygen-run
153         ssh fdo rm -rf public_html/doxygen
154         scp -r doxygen/html fdo:public_html/doxygen