aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2005-12-29 13:51:01 -0800
committerH. Peter Anvin <hpa@zytor.com>2005-12-29 13:51:01 -0800
commit355ac904a04f6845418f2b701162c9ca4e86b553 (patch)
tree1974992f674f6ee8cca3722e6df5897747772cf0
parent92eb5c8275d7fb31b1d2678623e61ba898977e73 (diff)
downloadlibucd-355ac904a04f6845418f2b701162c9ca4e86b553.tar.gz
Add "make install"libucd-0.1
-rw-r--r--MCONFIG8
-rw-r--r--Makefile5
2 files changed, 13 insertions, 0 deletions
diff --git a/MCONFIG b/MCONFIG
index ab869ff..9771ba9 100644
--- a/MCONFIG
+++ b/MCONFIG
@@ -15,3 +15,11 @@ HOST_LDFLAGS =
HOST_LIBS =
PERL = time perl
+
+INSTALL = install -c
+INSTALL_LIB = $(INSTALL) -m 755
+INSTALL_DATA = $(INSTALL) -m 644
+
+prefix = /usr/local
+libdir = $(prefix)/lib
+mandir = $(prefix)/man
diff --git a/Makefile b/Makefile
index 5516d24..30a857a 100644
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,11 @@ clean:
rm -f *.o *.ho *.lo *.i *.*.a *.so *.so.* ucd.h
$(MAKE) -C perfect clean
+install: all
+ mkdir -p $(INSTALLROOT)$(libdir) $(INSTALLROOT)$(mandir)/man3
+ $(INSTALL_LIB) $(LIB_FILE) $(SO_FILE) $(SO_NAME) $(libdir)
+ $(INSTALL_DATA) *.3 $(mandir)/man3
+
# -----------------------------------------------------------------------
$(CVT_FILES) : gen/done