EXPIRE command
[rxpd] / Makefile.am
index be5515a87e7d98f7e77b1ff4b1dbee50a67aa910..543dafb93d00e57069c6f872c4c3c94a6c78d2f8 100644 (file)
@@ -15,7 +15,7 @@
 #  along with this program; if not, write to the Free Software
 #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
 #  along with this program; if not, write to the Free Software
 #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-AUTOMAKE_OPTIONS=foreign
+AUTOMAKE_OPTIONS=gnu
 
 rxpd_srcdir = $(top_srcdir)/src
 
 
 rxpd_srcdir = $(top_srcdir)/src
 
@@ -24,11 +24,47 @@ bin_PROGRAMS = rxpd
 rxpd_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra
 rxpd_LDADD = -levent
 
 rxpd_CFLAGS = $(CFLAGS) -std=gnu99 -Wall -Wextra
 rxpd_LDADD = -levent
 
-rxpd_SOURCES =                         \
-       $(rxpd_srcdir)/main.c   \
-       $(rxpd_srcdir)/psplay.c \
-       $(rxpd_srcdir)/rxpd.c   \
-       $(rxpd_srcdir)/llist.h  \
-       $(rxpd_srcdir)/psplay.h \
-       $(rxpd_srcdir)/rxpd.h
+rxpd_SOURCES =                                 \
+       $(rxpd_srcdir)/rxpd.h                   \
+       $(rxpd_srcdir)/main.c                   \
+       $(rxpd_srcdir)/psplay.c                 \
+       $(rxpd_srcdir)/llist.h                  \
+       $(rxpd_srcdir)/psplay.h                 \
+       $(rxpd_srcdir)/rxpd_base.c              \
+       $(rxpd_srcdir)/rxpd_buffer.c            \
+       $(rxpd_srcdir)/rxpd_connection.c        \
+       $(rxpd_srcdir)/rxpd_connection_cmd.c    \
+       $(rxpd_srcdir)/rxpd_file.c              \
+       $(rxpd_srcdir)/rxpd_rule.c              \
+       $(rxpd_srcdir)/rxpd_socket.c
 
 
+
+#### maintainer targets
+
+meta.TODO:
+       w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/ToDo?action=print' |\
+       (read; read; cat) > $(top_srcdir)/TODO
+
+meta.README:
+       w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/Documentation?action=print' |\
+       (read; read; cat) > $(top_srcdir)/README
+
+meta.AUTHORS:
+       w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/Authors?action=print' |\
+       (read; read; cat) > $(top_srcdir)/AUTHORS
+
+meta.NEWS:
+       w3m -no-cookie -dump 'http://www.pipapo.org/pipawiki/RegexPolicyDaemon/News?action=print' |\
+       (read; read; cat) > $(top_srcdir)/NEWS
+
+meta.ChangeLog:
+       git log --pretty='format:HEADER:%ai %an <%ae>%n%n%s%n' |\
+       sed -e 's/\(.*\)/    \1/;s/    HEADER:\([-0-9]*\) [0-9:]* [0-9+]* \(.*\)/\1 \2/' > $(top_srcdir)/ChangeLog
+
+meta: meta.TODO meta.README meta.AUTHORS meta.NEWS meta.ChangeLog
+
+release: meta dist
+       list='$(DIST_ARCHIVES)'; for i in $$list; do \
+               gpg -s $$i;\
+               rm $$i;\
+       done