# # Makefile for the SAM Shell Accessible Modules library. # #Copyleft: # SAMlib provides a library of functions for bash/sh shell scripts. # Copyright (C) 1998-2001 William Stearns # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # The author can also be reached at: # William Stearns #email: wstearns@pobox.com (preferred) #web: http://www.pobox.com/~wstearns #snail: 544 Winchester Place # Colchester VT, 05446, USA # # Modified for Debian GNU/Linux. DESTDIR = ##Make sure samlib has SAMVER updated when this changes SAMVER = 0.2 #No quotes around multi file specs. LIBDIR=$(DESTDIR)/usr/lib/samlib/ LIBFILES=samlib #DOCDIR=$(DESTDIR)/usr/share/doc/sam-${SAMVER}/ #DOCFILES=COPYING index.html mason.sgml mason.txt mason.html mason-1.html mason-2.html mason-3.html mason-4.html mason-5.html mason-6.html mason-7.html mason-8.html mason-9.html mason-10.html mason-11.html toc.gif prev.gif next.gif mason-banner.gif install: @echo -n "Installing files... " @echo -n "lib directory... " @install -o root -g root -m 0755 -d ${LIBDIR} @echo -n "${LIBFILES}... " @install -o root -g root -m 0644 ${LIBFILES} ${LIBDIR} # @echo -n "doc directory... " # @install -o root -g root -m 0755 -d ${DOCDIR} # @echo -n "${DOCFILES}... " # @install -o root -g root -m 0644 ${DOCFILES} ${DOCDIR} @echo done! regress: @if ./samlib regression-test ; then \ echo Regression test succeeded. ; \ else \ echo Regression test failed, exiting. ; \ exit 1 ; \ fi distribs: regress @echo This should only need to be used by the author in @echo packing up the sam package. cd .. \ && tar cf - samlib-${SAMVER}/ | \ gzip -9 > samlib-${SAMVER}.tar.gz \ && rm -f samlib-current \ && ln -sf samlib-${SAMVER} sam-current \ && tar cf - sam-current/* | \ gzip -9 > sam-current.tar.gz \ && cp samlib-${SAMVER}.tar.gz /usr/src/redhat/SOURCES/ \ && cd samlib-${SAMVER} \ && cp -f redhat/samlib.spec /usr/src/redhat/SPECS/ \ && rpm --sign -ba /usr/src/redhat/SPECS/samlib.spec \ && mv -f /usr/src/samlib-*.tar.gz /usr/src/mysource/ \ && mv -f /usr/src/redhat/RPMS/noarch/samlib-*.noarch.rpm /usr/src/mysource/ \ && mv -f /usr/src/redhat/SRPMS/samlib-*.src.rpm /usr/src/mysource/ mini-install: @if [ ! -f ${LIBDIR} ]; then \ mkdir -p ${LIBDIR} ; \ fi cp -pf samlib /usr/lib/samlib