view Makefile.am @ 6:0b03e7656abf

initial version
author carl
date Fri, 10 Mar 2006 12:14:57 -0800
parents 32b57406b656
children f9e8bbf33a2a
line wrap: on
line source

SUBDIRS = src man html info
hackdir = $(sysconfdir)/sm-archive
hack_SCRIPTS = sm-archive
hack_DATA = sm-archive.conf
CLEANFILES = sm-archive xml/sm-archive xml/Makefile
EXTRA_DIST = sm-archive.rc $(hack_DATA) sm-archive.spec $(wildcard xml/h*) $(wildcard xml/M*) $(wildcard xml/sm*)

sm-archive: $(srcdir)/sm-archive.rc
	   rm -f sm-archive
	   echo "#!" $(BASH) >sm-archive
	   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