From 33fb4aaca31cba40299d328f777f958dcf44b2d5 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 12 Mar 2008 17:24:49 +0200 Subject: [PATCH] [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. --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 43bc8a4c5..5b16e684e 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,8 @@ # only. # MANDIR is set to "$(PREFIX)/share/man" by default and is used for # installation only. +# DOCDIR is set to "$(PREFIX)/doc/haproxy" by default and is used for +# installation only. # # Other variables : # DLMALLOC_SRC : build with dlmalloc, indicate the location of dlmalloc.c. @@ -60,6 +62,7 @@ DESTDIR = PREFIX = /usr/local SBINDIR = $(PREFIX)/sbin MANDIR = $(PREFIX)/man +DOCDIR = $(PREFIX)/doc/haproxy #### TARGET system # Use TARGET= to optimize for a specifc target OS among the @@ -452,11 +455,17 @@ install-man: install -d $(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 -d $(DESTDIR)/$(SBINDIR) install haproxy $(DESTDIR)/$(SBINDIR) -install: install-man install-bin +install: install-doc install-man install-bin clean: rm -f *.[oas] src/*.[oas] core haproxy test