Add `make install' targets, and also version IDs on the man pages.
[sgt/utils] / Makefile
index d5cb05a..284e519 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,13 @@
 SUBDIRS = base64 cvt-utf8 multi xcopy
+
+# for `make html' and `make release'; should be a relative path
 DESTDIR = .
 
+# for `make install'; should be absolute paths
+PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/man/man1
+
 all:
        for i in $(SUBDIRS); do make -C $$i; done
 
@@ -13,3 +20,8 @@ html:
 
 release:
        for i in $(SUBDIRS); do make -C $$i release DESTDIR=../$(DESTDIR); done
+
+install:
+       for i in $(SUBDIRS); do \
+           make -C $$i install; \
+       done