aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-06 00:02:41 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-06 00:02:41 +0000
commit388782b89be0bf8144ae3dc2a590b466c96d3d6d (patch)
treee8d41f72cc32be131ea088ef1b0dc60d740a2a37 /Makefile
parent6adbb40f6eb112b4a34b7696301421ec7aa212bb (diff)
downloadtermo-388782b89be0bf8144ae3dc2a590b466c96d3d6d.tar.gz
termo-388782b89be0bf8144ae3dc2a590b466c96d3d6d.tar.xz
termo-388782b89be0bf8144ae3dc2a590b466c96d3d6d.zip
Added manpages for (most of) the external API functions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 754bafc..84f2e13 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ SONAME=libtermkey.so.0
PREFIX=/usr/local
LIBDIR=$(PREFIX)/lib
INCDIR=$(PREFIX)/include
+MANDIR=$(PREFIX)/share/man
+MAN3DIR=$(MANDIR)/man3
ifeq ($(DEBUG),1)
CFLAGS_DEBUG=-ggdb -DDEBUG
@@ -29,11 +31,24 @@ clean:
rm -f *.o demo
.PHONY: install
-install:
+install: install-inc install-lib install-man
+
+install-inc:
install -d $(DESTDIR)$(INCDIR)
install -m644 termkey.h $(DESTDIR)$(INCDIR)
+ install -d $(DESTDIR)$(LIBDIR)/pkgconfig
+ sed "s,@PREFIX@,$(PREFIX)," <termkey.pc.in >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc
+
+install-lib:
install -d $(DESTDIR)$(LIBDIR)
install libtermkey.so $(DESTDIR)$(LIBDIR)/$(SONAME)
ln -sf $(SONAME) $(DESTDIR)$(LIBDIR)/libtermkey.so
- install -d $(DESTDIR)$(LIBDIR)/pkgconfig
- sed "s,@PREFIX@,$(PREFIX)," <termkey.pc.in >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc
+
+install-man:
+ install -d $(DESTDIR)$(MAN3DIR)
+ for F in *.3; do \
+ gzip <$$F >$(DESTDIR)$(MAN3DIR)/$$F.gz; \
+ done
+ ln -sf termkey_new.3.gz $(DESTDIR)$(MAN3DIR)/termkey_free.3.gz
+ ln -sf termkey_getkey.3.gz $(DESTDIR)$(MAN3DIR)/termkey_getkey_force.3.gz
+ ln -sf termkey_setwaittime.3.gz $(DESTDIR)$(MAN3DIR)/termkey_getwaittime.3.gz