#
#	Digi SNMP Management Entity Makefile for Linux
#
#	$Id: Makefile.installed,v 1.16 2002/07/24 16:17:37 jeffa Exp $
#

install: 
	install -m 0755 -d $(RPM_BUILD_ROOT)/opt/dg
	cp -R ../sme $(RPM_BUILD_ROOT)/opt/dg
	cp -R ../tcl-tk8.3.2 $(RPM_BUILD_ROOT)/opt/dg

uninstall:
	rm -rf $(RPM_BUILD_ROOT)/opt/dg/sme
	rm -rf $(RPM_BUILD_ROOT)/opt/dg/tcl-tk8.3.2

link:
	if ( [ -f /usr/bin/dparemote ] ); then \
		rm /usr/bin/dparemote; \
	fi; \
	ln -s /opt/dg/sme/dparemote /usr/bin/dparemote
	if ( [ -d /usr/man ] );	then \
		install -m 0755 -d /usr/man/man8; \
		ln -sf /opt/dg/sme/management/docs/dparemote.8 /usr/man/man8/dparemote.8; \
	elif ( [ -d /usr/share/man ] );	then \
		install -m 0755 -d /usr/share/man/man8; \
		ln -sf /opt/dg/sme/management/docs/dparemote.8 /usr/share/man/man8/dparemote.8; \
	fi; \

unlink:
	rm -f /usr/bin/dparemote
	rm -f /usr/man/man8/dparemote.8

all:

clean:

clobber:

