# Makefile for mktclapp-3.9
# Edrx 2000feb18

# (find-es "tcl" "mktclapp")
# (find-es "debiandev" "mktclapp")
# (find-fline "~/debian/mktclapp/Makefile")

all: mktclapp xmktclapp mktclapp.1 xmktclapp.1

clean:
	rm -f mktclapp xmktclapp mktclapp.1 xmktclapp.1

mktclapp: mktclapp.c

%.1: %.pod
	pod2man --center=' ' --release='Mktclapp 3.9' --date=' ' $< > $@

xmktclapp: xmktclapp.tcl
	echo "#!/usr/bin/wish" > xmktclapp
	cat xmktclapp.tcl >> xmktclapp
	chmod 755 xmktclapp

install: all
	install mktclapp $(DESTDIR)/usr/bin/
	install xmktclapp $(DESTDIR)/usr/bin/
