Permalink
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (34 sloc) 1.75 KB
# not a GNU package. You can remove this line, if
# have all needed files, that a GNU package needs
AUTOMAKE_OPTIONS = foreign 1.4
SUBDIRS = src php doc plugins/loadavg plugins/fsusage
bin_SCRIPTS = scripts/sams_send_email
EXTRA_DIST = Makefile.cvs doc php etc spec debian redhat scripts
DISTCLEANFILES = Makefile.in configure aclocal.m4 config.guess config.sub depcomp install-sh ltmain.sh missing
dist-hook:
find $(distdir) -type d -name .svn | xargs rm -rf
docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
install-data-local:
# $(mkinstalldirs) $(DESTDIR)/$(datadir)/$(distdir)
$(mkinstalldirs) $(DESTDIR)/$(sysconfdir)
if [ ! -f $(DESTDIR)/$(sysconfdir)/sams2.conf ] ; then \
$(install_sh) -c -m 644 $(top_srcdir)/etc/sams2.conf $(DESTDIR)/$(sysconfdir) ;\
fi
if [ ! -f $(DESTDIR)/$(HTTPD_INCLUDE)/sams2.conf ] ; then \
$(install_sh) -c -m 644 $(top_srcdir)/etc/httpd_conf $(DESTDIR)/$(HTTPD_INCLUDE)/sams2.conf ;\
sed -i -e 's,__WEBPREFIX,$(datadir)/sams2,g' $(DESTDIR)/$(HTTPD_INCLUDE)/sams2.conf ;\
fi
if [ ! -f $(DESTDIR)/$(HTTPD_INCLUDE)/doc4sams2.conf ] ; then \
$(install_sh) -c -m 644 $(top_srcdir)/etc/doc_sams2_conf $(DESTDIR)/$(HTTPD_INCLUDE)/doc4sams2.conf ;\
sed -i -e 's,__DOCPREFIX,$(docdir),g' $(DESTDIR)/$(HTTPD_INCLUDE)/doc4sams2.conf ;\
fi
uninstall-local:
if [ -f $(DESTDIR)/$(sysconfdir)/sams2.conf ] ; then \
mv -f $(DESTDIR)/$(sysconfdir)/sams2.conf $(DESTDIR)/$(sysconfdir)/sams2.conf.save ;\
fi
if [ -f $(DESTDIR)/$(HTTPD_INCLUDE)/sams2.conf ] ; then \
mv -f $(DESTDIR)/$(HTTPD_INCLUDE)/sams2.conf $(DESTDIR)/$(HTTPD_INCLUDE)/sams2.conf.save ;\
fi
if [ -f $(DESTDIR)/$(HTTPD_INCLUDE)/doc4sams2.conf ] ; then \
mv -f $(DESTDIR)/$(HTTPD_INCLUDE)/doc4sams2.conf $(DESTDIR)/$(HTTPD_INCLUDE)/doc4sams2.conf.save ;\
fi