Makefile (580B)
1 VERSION=1.1 2 PREFIX?=/usr/local 3 BINDIR?=$(PREFIX)/bin 4 MANDIR?=$(PREFIX)/share/man 5 DOCDIR?=$(PREFIX)/share/doc 6 COMPLDIR?=$(PREFIX)/share/bash-completion 7 .DEFAULT_GOAL=all 8 9 afm.1: afm.1.scd 10 scdoc < $< > $@ 11 12 afm: 13 14 jd: 15 16 all: afm afm.1 jd 17 18 install: all 19 mkdir -p $(DESTDIR)/$(BINDIR) $(DESTDIR)/$(MANDIR)/man1 20 install -m755 afm $(DESTDIR)/$(BINDIR)/afm 21 install -m755 jd $(DESTDIR)/$(BINDIR)/jd 22 install -m644 afm.1 $(DESTDIR)/$(MANDIR)/man1/afm.1 23 24 uninstall: 25 rm -f $(DESTDIR)/$(BINDIR)/afm 26 rm -f $(DESTDIR)/$(BINDIR)/jd 27 rm -f $(DESTDIR)/$(MANDIR)/man1/afm.1 28 29 clean: 30 rm -rf afm.1