You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2005/07/15 18:43:05 UTC
svn commit: r219216 - /httpd/apreq/trunk/Makefile.am
Author: joes
Date: Fri Jul 15 09:43:02 2005
New Revision: 219216
URL: http://svn.apache.org/viewcvs?rev=219216&view=rev
Log:
Replace cp -a with cp -R b/c cp -a is not portable,
Defines POD2HTML as suggested by Michael G. Schwern
<sc...@pobox.com> and uses it as pod2html will not
be in your path if perl isn't.
Use @PERL@ everywhere perl is used as perl might not be
in your path, but we know it from ./configure & ./buildconf
arguments --with-perl.
Uses ${mkinstalldirs} instead of mkdir to prevent directory exist
errors.
Submitted by: Philip M. Gollucci
Message-ID: <42...@p6m7g8.com>
Reviewed by: joes
Modified:
httpd/apreq/trunk/Makefile.am
Modified: httpd/apreq/trunk/Makefile.am
URL: http://svn.apache.org/viewcvs/httpd/apreq/trunk/Makefile.am?rev=219216&r1=219215&r2=219216&view=diff
==============================================================================
--- httpd/apreq/trunk/Makefile.am (original)
+++ httpd/apreq/trunk/Makefile.am Fri Jul 15 09:43:02 2005
@@ -20,6 +20,8 @@
bin_SCRIPTS = apreq2-config
CLEANFILES = $(bin_SCRIPTS)
+POD2HTML = @PERL@ -MPod::Html -wle 'pod2html @ARGV'
+
if BUILD_PERL_GLUE
PERL_TEST = perl_test
else
@@ -58,40 +60,40 @@
docs_install: docs
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
- cp -a docs $(DESTDIR)$(pkgdatadir)
+ cp -R docs $(DESTDIR)$(pkgdatadir)
%.html: $(POD_DIR)/%.pm Makefile.am
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
Apache2__Request.html: $(PM_DIR)/Request.pm
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
Apache2__Upload.html: $(PM_DIR)/Upload.pm
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
Apache2__Cookie.html: $(PM_DIR)/Cookie.pm
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
APR__Request.html: $(XS_DIR)/Request/Request.pod
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
APR__Request__Param.html: $(XS_DIR)/Request/Param/Param.pod
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
APR__Request__Cookie.html: $(XS_DIR)/Request/Cookie/Cookie.pod
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
APR__Request__Error.html: $(XS_DIR)/Request/Error/Error.pod
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
APR__Request__Apache2.html: $(XS_DIR)/Request/Apache2/Apache2.pod
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
APR__Request__CGI.html: $(XS_DIR)/Request/CGI/CGI.pod
- pod2html < $< | perl -0777 -pe '$(SED_BODY_TAG)' > $@
+ ${POD2HTML} < $< | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > $@
FAQ.html: Makefile.am FAQ.pod
- pod2html < FAQ.pod | perl -0777 -pe '$(SED_BODY_TAG)' > FAQ.html
+ ${POD2HTML} < FAQ.pod | @PERL@ -0777 -pe '$(SED_BODY_TAG)' > FAQ.html
pod2html :: Apache2__Request.html Apache2__Cookie.html Apache2__Upload.html
pod2html :: APR__Request.html APR__Request__Cookie.html
@@ -107,16 +109,16 @@
apr_tags: docs/apr.tag docs/apu.tag
docs/html/feather.gif:
- -mkdir docs
- -mkdir docs/html
- (cd docs/html; wget http://httpd.apache.org/docs-2.0/images/feather.gif)
+ ${mkinstalldirs} docs
+ ${mkinstalldirs} docs/html
+ cp feather.gif docs/html
docs/apu.tag:
- -mkdir docs
+ ${mkinstalldirs} docs
echo GENERATE_TAGFILE=`pwd`/docs/apu.tag | $(APU_DOX)
docs/apr.tag:
- -mkdir docs
+ ${mkinstalldirs} docs
echo GENERATE_TAGFILE=`pwd`/docs/apr.tag | $(APR_DOX)
test: all library_test module_test $(PERL_TEST)