aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-15 11:49:20 +0100
committerMattias Andrée <maandree@kth.se>2022-02-15 11:49:20 +0100
commitbf71e9977f0f25c5a4eb4142355e255e08fde8a1 (patch)
treed1088dae8080803cb98a9fb27b03b7e6249f32c8 /Makefile
parentRewait if sem_wait is interrupted (pthread_mutex_lock cannot be interrupted) (diff)
downloadlibar2simplified-bf71e9977f0f25c5a4eb4142355e255e08fde8a1.tar.gz
libar2simplified-bf71e9977f0f25c5a4eb4142355e255e08fde8a1.tar.bz2
libar2simplified-bf71e9977f0f25c5a4eb4142355e255e08fde8a1.tar.xz
Add readme and man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bed6999..92cdb58 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,8 @@ HDR =\
common.h
LOBJ = $(OBJ:.o=.lo)
+MAN3 = $(OBJ:.o=.3)
+MAN7 = libar2simplified.7
all: libar2simplified.a libar2simplified.$(LIBEXT) test
@@ -57,11 +59,15 @@ check: test
install: libar2simplified.a libar2simplified.$(LIBEXT)
mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
mkdir -p -- "$(DESTDIR)$(PREFIX)/include"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man3"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man7"
cp -- libar2simplified.a "$(DESTDIR)$(PREFIX)/lib/"
cp -- libar2simplified.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libar2simplified.$(LIBMINOREXT)"
ln -sf -- libar2simplified.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libar2simplified.$(LIBMAJOREXT)"
ln -sf -- libar2simplified.$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/libar2simplified.$(LIBEXT)"
cp -- libar2simplified.h "$(DESTDIR)$(PREFIX)/include/"
+ cp -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3/"
+ cp -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libar2simplified.a"
@@ -69,6 +75,8 @@ uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libar2simplified.$(LIBMINOREXT)"
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libar2simplified.$(LIBEXT)"
-rm -f -- "$(DESTDIR)$(PREFIX)/include/libar2simplified.h"
+ -cd -- "$(DESTDIR)$(MANPREFIX)/man3/" && rm -f -- $(MAN3)
+ -cd -- "$(DESTDIR)$(MANPREFIX)/man7/" && rm -f -- $(MAN7)
clean:
-rm -f -- *.o *.a *.lo *.su *.so *.so.* *.dll *.dylib