aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-07 20:50:01 +0100
committerMattias Andrée <maandree@kth.se>2021-03-07 20:50:01 +0100
commit6d4d0823dc508b35c53735a872190ad43aa60315 (patch)
tree4ff15b8e91882f21393a0815a54e4865d956c040 /Makefile
parentAssume all EDID 1.x are compatible (diff)
downloadlibgamma-6d4d0823dc508b35c53735a872190ad43aa60315.tar.gz
libgamma-6d4d0823dc508b35c53735a872190ad43aa60315.tar.bz2
libgamma-6d4d0823dc508b35c53735a872190ad43aa60315.tar.xz
Start replacing info manual with man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9d64823..c8338f5 100644
--- a/Makefile
+++ b/Makefile
@@ -150,6 +150,8 @@ HDR =\
set_ramps_fun.h\
$(HDR_METHODS)
+MAN7 = libgamma.7
+
all: libgamma.a libgamma.$(LIBEXT) test
$(OBJ): $(@:.o=.c) $(HDR)
@@ -186,11 +188,13 @@ test: test.o libgamma.a
install: libgamma.a libgamma.$(LIBEXT)
mkdir -p -- "$(DESTDIR)$(PREFIX)/lib/"
mkdir -p -- "$(DESTDIR)$(PREFIX)/include/"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man7/"
cp -- libgamma.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libgamma.$(LIBMINOREXT)"
ln -sf -- libgamma.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libgamma.$(LIBMAJOREXT)"
ln -sf -- libgamma.$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/libgamma.$(LIBEXT)"
cp -- libgamma.a "$(DESTDIR)$(PREFIX)/lib/"
cp -- libgamma.h "$(DESTDIR)$(PREFIX)/include/"
+ cp -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libgamma.$(LIBMAJOREXT)"
@@ -198,6 +202,7 @@ uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libgamma.$(LIBEXT)"
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libgamma.a"
-rm -f -- "$(DESTDIR)$(PREFIX)/include/libgamma.h"
+ -cd -- "$(DESTDIR)$(MANPREFIX)/man7/" && rm -f -- $(MAN7)
clean:
-rm -f -- *.o *.lo *.su *.a *.$(LIBEXT) test config.h