aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-13 17:29:14 +0200
committerMattias Andrée <maandree@kth.se>2021-04-13 17:29:14 +0200
commit6546989d280d8fc1e8e2bc152f08d9b04090d4b8 (patch)
treed201c83a72d9ef296773794d0cfce6dd7ecab7e0 /Makefile
parentUpdate todo: do not support multiple calendars, all birthdays shall be stored in gregorian, and other software shall convert (diff)
downloadlibcontacts-6546989d280d8fc1e8e2bc152f08d9b04090d4b8.tar.gz
libcontacts-6546989d280d8fc1e8e2bc152f08d9b04090d4b8.tar.bz2
libcontacts-6546989d280d8fc1e8e2bc152f08d9b04090d4b8.tar.xz
m + add section 3 man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4a543c8..01c9712 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,8 @@ HDR =\
LOBJ = $(OBJ:.o=.lo)
+MAN3 = $(OBJ:.o=.3)
+
all: libcontacts.a libcontacts.$(LIBEXT) test
$(OBJ): $($@:.o=.c) $(HDR)
@@ -72,11 +74,13 @@ check: test
install: libcontacts.a libcontacts.$(LIBEXT)
mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
mkdir -p -- "$(DESTDIR)$(PREFIX)/include"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man3"
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 -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libcontacts.$(LIBMAJOREXT)"
@@ -84,6 +88,7 @@ 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)/man3/" && rm -rf -- $(MAN3)
clean:
-rm -rf -- *.o *.a *.lo *.so *.dylib *.dll *.su test .testdir