Add manpages to make install
This commit is contained in:
parent
1e6b8b9952
commit
981b4a24f3
3 changed files with 10 additions and 4 deletions
12
Makefile
12
Makefile
|
@ -43,6 +43,8 @@ hdrs += include/bytes.h
|
|||
hdrs += include/haggis.h
|
||||
hdrs += include/jobq.h
|
||||
|
||||
mans += man/haggis_node.3
|
||||
|
||||
srcs += bytes.c
|
||||
srcs += haggis.c
|
||||
srcs += jobq.c
|
||||
|
@ -64,12 +66,16 @@ libhaggis.a: $(objs)
|
|||
libhaggis.so: $(objs)
|
||||
$(CC) -shared -o $@ $? $(LIBS)
|
||||
|
||||
install: install_include install_shared install_static
|
||||
install: install_include install_man install_shared install_static
|
||||
|
||||
install_include: include/haggis.h
|
||||
@[ -d $(includedir) ] || install -d $(includedir)
|
||||
install -m644 include/haggis.h $(includedir)/
|
||||
|
||||
install_man: $(mans)
|
||||
@[ -d $(mandir)/man3 ] || install -d $(mandir)/man3
|
||||
install -m644 $(mans) $(mandir)/man3/
|
||||
|
||||
install_static: libhaggis.a
|
||||
@[ -d $(libdir) ] || install -d $(libdir)
|
||||
install -m644 libhaggis.a $(libdir)/
|
||||
|
@ -88,5 +94,5 @@ clean:
|
|||
rm -rf *.a *.so *.o
|
||||
$(MAKE) -C test clean
|
||||
|
||||
.PHONY: all shared static clean install install_include install_static \
|
||||
install_shared testclean test
|
||||
.PHONY: all shared static clean install install_include install_man \
|
||||
install_static install_shared testclean test
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
prefix ?= /usr/local
|
||||
PREFIX ?= /usr/local
|
||||
bindir = $(DESTDIR)$(PREFIX)/bin
|
||||
includedir = $(DESTDIR)$(PREFIX)/include
|
||||
libdir = $(DESTDIR)$(PREFIX)/lib
|
||||
|
|
Loading…
Add table
Reference in a new issue