--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+DOTTYSCRIPTS = dotty.lefty dotty_draw.lefty dotty_edit.lefty \
+ dotty_layout.lefty dotty_ui.lefty
+
+man = dotty.1
+pdf = dotty.pdf
+
+leftydir = $(pkgdatadir)/lefty
+pdfdir = $(pkgdatadir)/doc/pdf
+
+man_MANS = $(man)
+pdf_DATA = $(pdf)
+bin_SCRIPTS = dotty
+lefty_SCRIPTS = $(DOTTYSCRIPTS)
+
+dotty: $(top_srcdir)/dotty/dotty.sh
+ cp $(top_srcdir)/dotty/dotty.sh dotty
+ chmod +x dotty
+
+.1.pdf:
+ groff -Tps -man $< | ps2pdf - - >$@
+
+EXTRA_DIST = $(DOTTYSCRIPTS) $(man) $(pdf) \
+ dotty.bsh dotty.ksh dotty.sh \
+ Makefile.old notes mswin32
+
+DISTCLEANFILES = $(pdf) dotty
--- /dev/null
+all: dotty
+
+include ../Config.mk
+include ../makearch/$(ARCH)
+
+PACKAGE=lefty
+LIB_SCRIPTS = dotty.lefty dotty_draw.lefty dotty_edit.lefty \
+ dotty_layout.lefty dotty_ui.lefty
+BIN_SCRIPTS = dotty
+MAN1 = dotty.1
+
+dotty: dotty.sh
+ cp dotty.sh dotty
+ chmod +x dotty
+
+install: $(LIB_SCRIPTS) $(BIN_SCRIPTS)
+ $(MKPATH) $(LIBDIR)/$(PACKAGE)
+ $(INSTALL) $(LIB_SCRIPTS) $(LIBDIR)/$(PACKAGE)
+ $(MKPATH) $(BINDIR)
+ $(INSTALL) $(BIN_SCRIPTS) $(BINDIR)
+ $(MKPATH) $(MANDIR)
+ $(INSTALL) dotty.1 $(MANDIR)
+
+clean:
+ true
+
+distclean:
+ true