/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/


DOBJS		=	pshbttn.do \
			pshbttnv.do \
			link.do \
			linkv.do

IHFILES		=	pshbttn.ih \
			pshbttnv.ih \
			link.ih \
			linkv.ih 

LINKHELP	=	linkins

LINKHELPALIASES	=	linkinset linkinsets \
			hyplink hyplinks

PBHELP		=	pshbttn
PBHELPALIASES	=	pushbutton trigger

LINKFILES	= 	Link.d Developr.d \
			Help.d Prefs.d \
			Procs.d 
LIBS =	${UTILLIB}

LINKDIR = $(DESTDIR)/doc/atk/linkinset

INCDIR = $(DESTDIR)/include/atk

NormalObjectRule()
NormalATKRule()
NormalHelpRule()
DependTarget()

DynamicMultiObject(pshbttn.do, pshbttn.o, ${LIBS}, ${BSDLIB}) /* all because of NewString */
InstallClassFiles($(DOBJS), $(IHFILES))


/*  Beware:  there is a build dependancy here.  We are assuming that $DESTDIR/doc/atk already exists.  If it doesn't, the build will fail.  This directory should be made by the top-level doc imkfile. */

MkdirTarget($(DESTDIR)/doc $(DESTDIR)/doc/atk $(DESTDIR)/doc/atk/linkinset)

CleanTarget($(LINKFILES) $(LINKHELP).help)

.SUFFIXES: .pro .d .help
.pro.d:
	$(SED) -e s:\$$DESTDIR:$(LINKDIR):g \
	       -e s:\$$SRCDIR:$(INCDIR):g \
	       $*.pro > $*.d
.pro.help:
	$(SED) -e s:\$$DESTDIR:$(LINKDIR):g \
	       -e s:\$$SRCDIR:$(INCDIR):g \
	       $*.pro > $*.help

InstallDocs($(LINKHELP).help, $(DESTDIR)/help)
InstallHelpAlias($(LINKHELP), $(LINKHELPALIASES))
InstallDocs($(LINKFILES), $(LINKDIR))
InstallDocs(link.intro, ${DESTDIR}/help)
InstallDocs($(PBHELP).help, $(DESTDIR)/help)
InstallDocs(link.pr pshbttn.pr, ${DESTDIR}/lib/prs)
InstallHelpAlias($(PBHELP), $(PBHELPALIASES))

