diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-15 11:49:20 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-15 11:49:20 +0100 |
commit | bf71e9977f0f25c5a4eb4142355e255e08fde8a1 (patch) | |
tree | d1088dae8080803cb98a9fb27b03b7e6249f32c8 /Makefile | |
parent | Rewait if sem_wait is interrupted (pthread_mutex_lock cannot be interrupted) (diff) | |
download | libar2simplified-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 '')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |