ossp-pkg/snmpdx/Makefile.in
1.1
##
## OSSP snmpdx - SNMP Daemon Extension
##
## Copyright (c) 2003 Ralf S. Engelschall <rse@engelschall.com>
## Copyright (c) 2003 The OSSP Project <http://www.ossp.org/>
## Copyright (c) 2003 Cable & Wireless Germany <http://www.cw.com/de/>
##
## This file is part of OSSP snmpd, a SNMP Daemon Extension which
## can be found at http://www.ossp.org/pkg/tool/snmpdx/.
##
## 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.0 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 file; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
## USA, or contact Ralf S. Engelschall <rse@engelschall.com>.
##
## Makefile.in: build procedure source (syntax: make)
##
@SET_MAKE@
SHELL = /bin/sh
SHTOOL = ./shtool
RM = rm -f
SED = sed
POD2MAN = pod2man
PERL = @PATH_PERL@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
includedir = @includedir@
mandir = @mandir@
DESTDIR =
all: snmpdx snmpdx.1
snmpdx: snmpdx.pl
@$(SHTOOL) echo -e "%Bgenerating snmpdx%b"
$(SED) -e "s;#!\@PERL\@;#!$(PERL);" \
<snmpdx.pl >snmpdx && \
chmod a+x snmpdx
snmpdx.1: snmpdx.pod
@$(SHTOOL) echo -e "%Bgenerating snmpdx.1%b"
V=`$(SHTOOL) version -l txt -d short VERSION`; \
D=`$(SHTOOL) version -l txt -d long VERSION | $(SED) -e 's;.*(;;' -e 's;).*;;'`; \
$(POD2MAN) --section=1 --center="SNMP Daemon Extension" \
--release="$$D" --date="OSSP snmpdx $$V" snmpdx.pod >snmpdx.1
install: all
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
$(SHTOOL) install -c -m 755 snmpdx $(DESTDIR)$(bindir)/snmpdx
$(SHTOOL) install -c -m 644 snmpdx.1 $(DESTDIR)$(mandir)/man1/snmpdx.1
clean:
$(RM) snmpdx snmpdx.1
distclean: clean
$(RM) config.cache config.status config.log
$(RM) Makefile config.h