PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man BIN = \ cblv \ cblu \ cblp \ cblr \ cblvv \ cblvu \ cblvp \ cblvr MAN = \ cblv.1 \ cblu.1 \ cblp.1 \ cblr.1 \ cblvv.1 \ cblvu.1 \ cblvp.1 \ cblvr.1 install: mkdir -p $(DESTDIR)$(PREFIX)/bin/ mkdir -p $(DESTDIR)$(PREFIX)/share/cbl mkdir -p $(DESTDIR)$(MANPREFIX)/man1/ cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin/ cp -r share/*.awk $(DESTDIR)$(PREFIX)/share/cbl cp -f $(MAN) $(DESTDIR)$(MANPREFIX)/man1/ for bin in $(BIN); do \ chmod 755 $(DESTIR)$(PREFIX)/bin/$$bin; \ done for man in $(MAN); do \ chmod 644 $(DESTDIR)$(MANPREFIX)/man1/$$man; \ done uninstall: rm -rf $(DESTDIR$(PREFIX)/share/cbl for bin in $(BIN); do \ rm -f $(DESTDIR)$(PREFIX)/bin/$$bin; \ done for man in $(MAN); do \ rm -f $(MANPREFIX)/man1/$$man; \ done