# This is the Makefile for tkpasman.
# Please edit build variables in the file `config'
include config

buildfiles = cooltk.tcl tkpasman.tcl tkpasman-hdr.tcl README \
             config build.sh Makefile

distfiles = $(buildfiles) INSTALL ChangeLog TODO COPYING WARNING

.PHONY: clean install uninstall tarball

$(PROGNAME): $(buildfiles)
	$(SHELL) build.sh

clean:
	-rm $(PROGNAME)

install: $(PROGNAME)
	mkdir -p "$(BINDIR)" &&\
	install -m 755 $< "$(BINDIR)/"

uninstall:
	-rm "$(BINDIR)/$(PROGNAME)"

tarball:
	@dir="TkPasMan-$(VERSION)"		&&\
	mkdir $${dir}				&&\
        cp -a $(distfiles) $${dir}		&&\
        tar zcf $${dir}.tar.gz $${dir}		&&\
        rm -r $${dir}
