]> granicus.if.org Git - apache/commitdiff
Allow make install to work when built with VPATH.
authorRyan Bloom <rbb@apache.org>
Thu, 13 Sep 2001 22:19:13 +0000 (22:19 +0000)
committerRyan Bloom <rbb@apache.org>
Thu, 13 Sep 2001 22:19:13 +0000 (22:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91024 13f79535-47bb-0310-9956-ffa450edef68

Makefile.in
support/Makefile.in

index 01e918cac125ce67dce2207a173bdc2bae64eb58..df0ca4bb0bbe72f7089301a97ebb1718ef280b78 100644 (file)
@@ -30,7 +30,7 @@ include $(top_srcdir)/build/program.mk
 install-conf:
        @echo Installing configuration files
        @test -d $(sysconfdir) || $(MKINSTALLDIRS) $(sysconfdir)
-       @cd docs/conf; \
+       @cd $(top_srcdir)/docs/conf; \
        for i in mime.types magic; do \
                $(INSTALL_DATA) $$i $(sysconfdir); \
        done; \
@@ -59,39 +59,39 @@ install-build:
            cp srclib/apr/shlibtool $(installbuilddir); \
        fi
 
-htdocs-srcdir = docs/docroot
+htdocs-srcdir = $(top_srcdir)/docs/docroot
 
 docs::
        mkdir -p ./docs/api
        srclib/apr/build/scandoc.pl -i./build/default.pl -p./docs/api/ ./include/*.h
 
 dox::
-       doxygen docs/doxygen.conf
+       doxygen $(top_srcdir)/docs/doxygen.conf
 
 install-htdocs:
        @echo Installing HTML documents
        @test -d $(htdocsdir) || $(MKINSTALLDIRS) $(htdocsdir)
        @test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(htdocsdir))
        @test -d $(prefix)/manual || $(MKINSTALLDIRS) $(prefix)/manual
-       @test -d docs/manual && (cd docs/manual && cp -rp * $(prefix)/manual)
+       @test -d $(top_srcdir)/docs/manual && (cd $(top_srcdir)/docs/manual && cp -rp * $(prefix)/manual)
        @(cd $(htdocsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
 
 install-error:
        @echo Installing error documents
        @test -d $(errordir) || $(MKINSTALLDIRS) $(errordir)
-       @(cd docs/error && cp -rp * $(errordir))
+       @(cd $(top_srcdir)/docs/error && cp -rp * $(errordir))
        @(cd $(errordir) && find . -name "CVS" -print | xargs rm -rf {} \;)
 
 install-icons:
        @echo Installing icons
        @test -d $(iconsdir) || $(MKINSTALLDIRS) $(iconsdir)
-       @(cd docs/icons && cp -rp * $(iconsdir))
+       @(cd $(top_srcdir)/docs/icons && cp -rp * $(iconsdir))
        @(cd $(iconsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
 
 install-cgi:
        @echo Installing CGIs
        @test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
-       @(cd docs/cgi-examples && cp -rp * $(cgidir))
+       @(cd $(top_srcdir)/docs/cgi-examples && cp -rp * $(cgidir))
        @(cd $(cgidir) && find . -name "CVS" -print | xargs rm -rf {} \;)
 
 install-other:
@@ -131,8 +131,8 @@ install-man:
        @test -d $(mandir)      || $(MKINSTALLDIRS) $(mandir)
        @test -d $(mandir)/man1 || $(MKINSTALLDIRS) $(mandir)/man1
        @test -d $(mandir)/man8 || $(MKINSTALLDIRS) $(mandir)/man8
-       @cp -p docs/man/*.1 $(mandir)/man1
-       @cp -p docs/man/*.8 $(mandir)/man8
+       @cp -p $(top_srcdir)/docs/man/*.1 $(mandir)/man1
+       @cp -p $(top_srcdir)/docs/man/*.8 $(mandir)/man8
 
 install-suexec:
        @if test -f $(builddir)/support/suexec; then \
index 5b0e88b08e262a405831793d0766059ae79834f1..a0c2c7580c99af3c1c9e9657c3ae6dd6bd1642ca 100644 (file)
@@ -13,7 +13,7 @@ include $(top_builddir)/build/rules.mk
 
 install:
        @test -d $(bindir) || $(MKINSTALLDIRS) $(bindir)
-       @cp -p $(top_srcdir)/server/httpd.exp $(libexecdir)
+       @cp -p $(top_builddir)/server/httpd.exp $(libexecdir)
        @cp -p apachectl $(sbindir)
        chmod 755 $(sbindir)/apachectl
        @if test -f $(builddir)/apxs; then \