#
# Makefile for stat
#

# Binary destination
bin = /usr/local/bin

# Unformated manual page destination
mansrc = /usr/local/man/man1

CC = cc
CFLAGS = -O
LINTFLAGS = -chabx

all: stat

stat: stat.c
	$(CC) $(CFLAGS) stat.c -o stat

install: stat stat.1
	install stat $(bin)
	install stat.1 $(mansrc)

clean:
	rm -f stat.o 

clobber:
	rm -f stat.o stat core

lint:
	lint $(LINTFLAGS) stat.c >stat.lint

shar:
	shar -cv -p X README Makefile stat.1 stat.c >stat.shar
