2 # 2007, Christian Thaeter <ct@pipapo.org>
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 2 of the
7 # License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 rxpd_srcdir = $(top_srcdir)/src
23 lib_LIBRARIES = librxpd_client.a
28 rxpd_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra -Werror
32 $(rxpd_srcdir)/rxpd.h \
33 $(rxpd_srcdir)/main.c \
34 $(rxpd_srcdir)/psplay.c \
35 $(rxpd_srcdir)/llist.h \
36 $(rxpd_srcdir)/psplay.h \
37 $(rxpd_srcdir)/rxpd_base.c \
38 $(rxpd_srcdir)/rxpd_buffer.c \
39 $(rxpd_srcdir)/rxpd_connection.c \
40 $(rxpd_srcdir)/rxpd_connection_cmd.c \
41 $(rxpd_srcdir)/rxpd_file.c \
42 $(rxpd_srcdir)/rxpd_rule.c \
43 $(rxpd_srcdir)/rxpd_socket.c
49 librxpd_client_a_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra -Werror
51 librxpd_client_a_SOURCES = \
52 $(rxpd_srcdir)/rxpd_client.c
55 $(rxpd_srcdir)/rxpd_client.h
60 tests_srcdir = $(top_srcdir)/tests
61 TESTS = $(tests_srcdir)/test.sh
64 $(tests_srcdir)/test.sh \
65 $(tests_srcdir)/files/example \
66 $(tests_srcdir)/files/policy \
67 $(tests_srcdir)/*.tests
69 CLEANFILES += ,* files/*/* files/*
71 #### maintainer targets
75 $(top_srcdir)/VERSION:
76 git describe >$(top_srcdir)/VERSION
79 LC_ALL=C w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/ToDo?action=print' |\
80 (read; read; cat) > $(top_srcdir)/TODO
83 LC_ALL=C w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/Documentation?action=print' |\
84 (read; read; cat) > $(top_srcdir)/README
87 LC_ALL=C w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/Authors?action=print' |\
88 (read; read; cat) > $(top_srcdir)/AUTHORS
91 LC_ALL=C w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/News?action=print' |\
92 (read; read; cat) > $(top_srcdir)/NEWS
95 git log --pretty='format:HEADER:%ai %an <%ae>%n%n%s%n' |\
96 sed -e 's/\(.*\)/ \1/;s/ HEADER:\([-0-9]*\) [0-9:]* [0-9+]* \(.*\)/\1 \2/' > $(top_srcdir)/ChangeLog
98 meta: $(top_srcdir)/VERSION meta.TODO meta.README meta.AUTHORS meta.NEWS meta.ChangeLog
100 release: clean meta dist
101 list='$(DIST_ARCHIVES)'; for i in $$list; do \