#
# Dlint Makefile
#

# Where to install things:
DEST=$(DESTROOT)/usr/local
BIN=$(DEST)/bin
MANEXT=1
MAN=$(DEST)/man/man$(MANEXT)

# Where is your BSD-style install program?
INSTALL=install				# BSD, SunOS 4.x
#INSTALL=/usr/ucb/install		# SysV, Solaris 2.x

# Please don't change this yourself.
VERSION=1.1.2

all:
	@echo 'nothing to make; try "make install".'
	@echo '(or, instead of installing dlint on your system,'
	@echo ' you could simply run dlint from this directory).'

install:
	$(INSTALL) -c -m 755 -o bin -g bin dlint $(BIN)
	$(INSTALL) -c -m 644 -o bin -g bin dlint.1 $(MAN)/dlint.$(MANEXT)

clean:
	-rm -f *.shar

dist:
	cd ..; tar cvf /tmp/dlint.tar \
		Dlint$(VERSION)/README \
		Dlint$(VERSION)/CHANGES \
		Dlint$(VERSION)/Makefile \
		Dlint$(VERSION)/dlint \
		Dlint$(VERSION)/dlint.1
	gzip -f /tmp/dlint.tar
