
VERSION=2.3
BINDIR=/usr/local/bin
MANDIR=/usr/local/man
CFLAGS=-O2

qprompt: qprompt.c
	cc $(CFLAGS) -DVERSION=\"$(VERSION)\" qprompt.c -o qprompt

install: qprompt
	install -s -o bin -g bin qprompt $(BINDIR)

install.man: qprompt.1
	install -o man -g man -m 644 qprompt.1 $(MANDIR)/man1

tar:
	make clean
	cd ..; tar cvf qprompt-$(VERSION).tar qprompt-$(VERSION)
	gzip -9vf ../qprompt-$(VERSION).tar

clean:
	rm -f *.o qprompt
