aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-13 21:35:15 +0200
committerMattias Andrée <maandree@kth.se>2021-04-13 21:35:15 +0200
commit65a58bf2add32890351df739bd35fc808358436a (patch)
treed3c17634b970b0145bdc8b898f02270529ea05c9 /Makefile
parentm + add section 3 man pages (diff)
downloadlibcontacts-65a58bf2add32890351df739bd35fc808358436a.tar.gz
libcontacts-65a58bf2add32890351df739bd35fc808358436a.tar.bz2
libcontacts-65a58bf2add32890351df739bd35fc808358436a.tar.xz
Add libcontacts.7 and libcontacts.h.0 + minor fixes + reorder stuff in libcontacts.h
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 01c9712..99c5227 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,10 @@ HDR =\
LOBJ = $(OBJ:.o=.lo)
+MAN0 = libcontacts.h.0
MAN3 = $(OBJ:.o=.3)
+MAN5 = contacts.5
+MAN7 = libcontacts.7
all: libcontacts.a libcontacts.$(LIBEXT) test
@@ -74,13 +77,19 @@ check: test
install: libcontacts.a libcontacts.$(LIBEXT)
mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
mkdir -p -- "$(DESTDIR)$(PREFIX)/include"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man0"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man3"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man5"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man7"
cp -- libcontacts.a "$(DESTDIR)$(PREFIX)/lib/"
cp -- libcontacts.h "$(DESTDIR)$(PREFIX)/include/"
cp -- libcontacts.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libcontacts.$(LIBMINOREXT)"
ln -sf -- libcontacts.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libcontacts.$(LIBMAJOREXT)"
ln -sf -- libcontacts.$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/libcontacts.$(LIBEXT)"
+ cp -- $(MAN0) "$(DESTDIR)$(MANPREFIX)/man0/"
cp -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3/"
+ cp -- $(MAN5) "$(DESTDIR)$(MANPREFIX)/man5/"
+ cp -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libcontacts.$(LIBMAJOREXT)"
@@ -88,7 +97,10 @@ uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libcontacts.$(LIBEXT)"
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libcontacts.a"
-rm -f -- "$(DESTDIR)$(PREFIX)/include/libcontacts.h"
+ -cd -- "$(DESTDIR)$(MANPREFIX)/man0/" && rm -rf -- $(MAN0)
-cd -- "$(DESTDIR)$(MANPREFIX)/man3/" && rm -rf -- $(MAN3)
+ -cd -- "$(DESTDIR)$(MANPREFIX)/man5/" && rm -rf -- $(MAN5)
+ -cd -- "$(DESTDIR)$(MANPREFIX)/man7/" && rm -rf -- $(MAN7)
clean:
-rm -rf -- *.o *.a *.lo *.so *.dylib *.dll *.su test .testdir