4.4BSD/usr/src/contrib/dipress/bin/Makefile

#
# Copyright (c) 1984, 1985, 1986 Xerox Corp.
#
#
BINS= charset dipress ipf ipfe ipmetrics iptotext iptroff maha makextdev mp2res plot2ip qip restotext stackres texttoip

install: iptroff
	for i in ${BINS}; do \
		(install -c $$i ${DESTBIN}/$$i); done

# Do a "make install" before running this command.
# Calling rdist so many times in not very efficient
rdist:
	for i in ${BINS}; do \
		for j in ${DESTMACHINES}; do \
			(rdist -c ${DESTBIN}/$$i $$j); done; done

iptroff: ../src/bin/iptroff.skel
	sed "2s;^#;# THIS FILE WAS AUTOMATICALLY PRODUCED;" < ../src/bin/iptroff.skel > iptroff.skel0
	sed "s;DESTBIN;${DESTBIN};" < iptroff.skel0 > iptroff.skel1
	sed "s;DESTLIB;${DESTLIB};" < iptroff.skel1 > iptroff.skel2
	sed "s;TITROFFBINARY;${TITROFFBINARY};" < iptroff.skel2 > iptroff
	install -c -m 755 iptroff ${DESTBIN}
	rm -f iptroff.skel0 iptroff.skel1 iptroff.skel2

clean:
	rm -f  ${BINS} iptroff.skel0 iptroff.skel1 iptroff.skel2