# transcript/sh/Makefile
#
# Copyright 1985,1987 Adobe Systems Incorporated. All rights reserved.
# GOVERNMENT END USERS: See notice of rights in Notice file in release directory.
# RCSID: $Header: /afs/dev.mit.edu/source/src80/third/unsupported/transcript-v2.1/sh/RCS/Makefile,v 1.3 1990/08/30 11:49:21 epeisach Exp $

programs all: ptroff psroff

ptroff: ptroff.sh
	sed	-e s,TROFFFONTDIR,$$TROFFFONTDIR,g \
		ptroff.sh >ptroff

psroff: psroff.sh
	-if test x$$DWB20 = x1; then \
	sed	-e s,DITDIR,$$DITDIR,g \
		-e s,DITFLAGS,,g \
		psroff.sh >psroff; else \
	sed	-e s,DITDIR,$$DITDIR,g \
		-e s,DITFLAGS,-t,g \
		psroff.sh >psroff; fi

install: psroff ptroff
	cp ptroff psroff $(DESTDIR)/$$BINDIR
	chmod 755 $(DESTDIR)/$$BINDIR/ptroff $(DESTDIR)/$$BINDIR/psroff
	-chgrp $$GROUP $(DESTDIR)/$$BINDIR/ptroff $(DESTDIR)/$$BINDIR/psroff
	chown $$OWNER $(DESTDIR)/$$BINDIR/ptroff $(DESTDIR)/$$BINDIR/psroff

clean:
	-rm -f - ptroff psroff *.BAK *.CKP .emacs_[0-9]*
