Fix links in output.
authorSimon Josefsson <simon@josefsson.org>
Sun, 20 Nov 2011 22:45:29 +0000 (23:45 +0100)
committerSimon Josefsson <simon@josefsson.org>
Sun, 20 Nov 2011 22:45:29 +0000 (23:45 +0100)
doc/cyclo/Makefile.am

index a323527..698a796 100644 (file)
@@ -1,6 +1,5 @@
 ## Process this file with automake to produce Makefile.in
-# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-# 2011 Free Software Foundation, Inc.
+# Copyright (C) 2002-2011  Free Software Foundation, Inc.
 #
 # This file is part of LIBTASN1.
 #
 
 EXTRA_DIST = cyclo-libtasn1.html
 
+vcurl = "http://git.savannah.gnu.org/gitweb/?p=libtasn1.git;a=blob;f=lib/%FILENAME%;hb=HEAD"
+
 cyclo-libtasn1.html:
-       $(PMCCABE) ${top_srcdir}/lib/*.[ch] \
+       (cd ${top_srcdir}/lib && \
+               $(PMCCABE) *.[ch] \
                | sort -nr \
-               | $(AWK) -f ${top_srcdir}/build-aux/pmccabe2html \
-                       -v lang=html -v name="$(PACKAGE_NAME)" \
-                       -v vcurl="http://git.savannah.gnu.org/gitweb/?p=libtasn1.git;a=blob;f=%FILENAME%;hb=HEAD" \
+               | LANG=C $(AWK) -f ${abs_top_srcdir}/build-aux/pmccabe2html \
+                       -v lang=html -v name="$(PACKAGE_STRING)" \
+                       -v vcurl=$(vcurl) \
                        -v url="http://www.gnu.org/software/libtasn1/" \
-                       -v css=../../build-aux/pmccabe.css \
+                       -v css=${abs_top_srcdir}/build-aux/pmccabe.css) \
                        > tmp
        mv tmp $@