VERSION=1.1 PREFIX?=/usr/local BINDIR?=$(PREFIX)/bin MANDIR?=$(PREFIX)/share/man DOCDIR?=$(PREFIX)/share/doc COMPLDIR?=$(PREFIX)/share/bash-completion .DEFAULT_GOAL=all afm.1: afm.1.scd scdoc < $< > $@ afm: jd: all: afm afm.1 jd install: all mkdir -p $(DESTDIR)/$(BINDIR) $(DESTDIR)/$(MANDIR)/man1 install -m755 afm $(DESTDIR)/$(BINDIR)/afm install -m755 jd $(DESTDIR)/$(BINDIR)/jd install -m644 afm.1 $(DESTDIR)/$(MANDIR)/man1/afm.1 uninstall: rm -f $(DESTDIR)/$(BINDIR)/afm rm -f $(DESTDIR)/$(BINDIR)/jd rm -f $(DESTDIR)/$(MANDIR)/man1/afm.1 clean: rm -rf afm.1