]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] Added 'install-doc' make target
authorChristian Wiese <morfoh@opensde.org>
Wed, 12 Mar 2008 15:24:49 +0000 (17:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2008 07:59:07 +0000 (08:59 +0100)
This change is also introducing a new make variable called DOCDIR,
which is set to "$(PREFIX)/doc/haproxy" by default.

Makefile

index 70aab2e4b1ed40087617d9014308bdcd4caf60e2..0e8649a775ef1b23e63c1fd7b62f6dbb4e78e74f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,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.
@@ -61,6 +63,7 @@ DESTDIR =
 PREFIX = /usr/local
 SBINDIR = $(PREFIX)/sbin
 MANDIR = $(PREFIX)/man
+DOCDIR = $(PREFIX)/doc/haproxy
 
 #### TARGET system
 # 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 -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