[BUILD] Added 'install-doc' make target
This change is also introducing a new make variable called DOCDIR, which is set to "$(PREFIX)/doc/haproxy" by default.
This commit is contained in:
parent
4cf5d575b5
commit
bf34eb4f73
11
Makefile
11
Makefile
@ -46,6 +46,8 @@
|
|||||||
# only.
|
# only.
|
||||||
# MANDIR is set to "$(PREFIX)/share/man" by default and is used for
|
# MANDIR is set to "$(PREFIX)/share/man" by default and is used for
|
||||||
# installation only.
|
# installation only.
|
||||||
|
# DOCDIR is set to "$(PREFIX)/doc/haproxy" by default and is used for
|
||||||
|
# installation only.
|
||||||
#
|
#
|
||||||
# Other variables :
|
# Other variables :
|
||||||
# DLMALLOC_SRC : build with dlmalloc, indicate the location of dlmalloc.c.
|
# DLMALLOC_SRC : build with dlmalloc, indicate the location of dlmalloc.c.
|
||||||
@ -61,6 +63,7 @@ DESTDIR =
|
|||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
SBINDIR = $(PREFIX)/sbin
|
SBINDIR = $(PREFIX)/sbin
|
||||||
MANDIR = $(PREFIX)/man
|
MANDIR = $(PREFIX)/man
|
||||||
|
DOCDIR = $(PREFIX)/doc/haproxy
|
||||||
|
|
||||||
#### TARGET system
|
#### TARGET system
|
||||||
# Use TARGET=<target_name> to optimize for a specifc target OS among the
|
# Use TARGET=<target_name> to optimize for a specifc target OS among the
|
||||||
@ -479,11 +482,17 @@ install-man:
|
|||||||
install -d $(DESTDIR)/$(MANDIR)/man1
|
install -d $(DESTDIR)/$(MANDIR)/man1
|
||||||
install -m 644 doc/haproxy.1 $(DESTDIR)/$(MANDIR)/man1
|
install -m 644 doc/haproxy.1 $(DESTDIR)/$(MANDIR)/man1
|
||||||
|
|
||||||
|
install-doc:
|
||||||
|
install -d $(DESTDIR)/$(DOCDIR)
|
||||||
|
for x in configuration architecture haproxy-en haproxy-fr; do \
|
||||||
|
install -m 644 doc/$$x.txt $(DESTDIR)/$(DOCDIR) ; \
|
||||||
|
done
|
||||||
|
|
||||||
install-bin: all
|
install-bin: all
|
||||||
install -d $(DESTDIR)/$(SBINDIR)
|
install -d $(DESTDIR)/$(SBINDIR)
|
||||||
install haproxy $(DESTDIR)/$(SBINDIR)
|
install haproxy $(DESTDIR)/$(SBINDIR)
|
||||||
|
|
||||||
install: install-man install-bin
|
install: install-doc install-man install-bin
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.[oas] src/*.[oas] core haproxy test
|
rm -f *.[oas] src/*.[oas] core haproxy test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user