diff Makefile.am @ 0:48d06780cf77

initial version
author Carl Byington <carl@five-ten-sg.com>
date Tue, 13 May 2008 14:03:10 -0700
parents
children 180d26aa2a17
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.am	Tue May 13 14:03:10 2008 -0700
@@ -0,0 +1,21 @@
+ACLOCAL_AMFLAGS = -I m4
+
+SUBDIRS = src man html info
+hackdir = $(sysconfdir)
+hack_SCRIPTS = routeflapper
+sysconf_DATA = routeflapper.conf
+htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@
+html_DATA = AUTHORS COPYING ChangeLog NEWS README
+CLEANFILES = routeflapper xml/routeflapper xml/Makefile
+EXTRA_DIST = routeflapper.conf routeflapper.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/s*)
+
+routeflapper: routeflapper.rc
+	   cat routeflapper.rc     | \
+	       sed -e "s,SBINDIR,$(sbindir),g"  | \
+	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>routeflapper
+
+chkconfig: routeflapper
+	   mv -f $(sysconfdir)/routeflapper /etc/rc.d/init.d
+	   /sbin/chkconfig --del routeflapper
+	   /sbin/chkconfig --add routeflapper
+