view Makefile.am @ 17:8ebecad6530f stable-1-6

Add src/daemon* missing from source control. Switch to Mercurial source control.
author Carl Byington <carl@five-ten-sg.com>
date Fri, 21 Mar 2008 16:00:13 -0700
parents f9e8bbf33a2a
children 37793d4c90a0
line wrap: on
line source

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src man html info
hackdir = $(sysconfdir)/sm-archive
hack_SCRIPTS = sm-archive
hack_DATA = sm-archive.conf
htmldir = ${datadir}/doc/@PACKAGE@-@VERSION@
html_DATA = AUTHORS COPYING ChangeLog NEWS README
CLEANFILES = sm-archive xml/sm-archive xml/Makefile
EXTRA_DIST = sm-archive.rc $(hack_DATA) sm-archive.spec $(wildcard m4/*) $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/sm*)

sm-archive: sm-archive.rc
	   cat $(srcdir)/sm-archive.rc     | \
	       sed -e "s,SBINDIR,$(sbindir),g"  | \
	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>sm-archive

chkconfig: sm-archive
	   /usr/bin/getent passwd sm-archive || /usr/sbin/useradd -r -d /etc/sm-archive -M -c "sm-archive pseudo-user" -s /sbin/nologin sm-archive
	   mv -f $(sysconfdir)/sm-archive /etc/rc.d/init.d
	   /sbin/chkconfig --del sm-archive
	   /sbin/chkconfig --add sm-archive