[Lemon-commits] [lemon_svn] ladanyi: r708 - in hugo/branches/ladanyi/automake_test: . doc
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:41:04 CET 2006
Author: ladanyi
Date: Thu May 6 11:04:28 2004
New Revision: 708
Added:
hugo/branches/ladanyi/automake_test/doc/Makefile.am
hugo/branches/ladanyi/automake_test/doc/makefile.old
- copied unchanged from r691, /hugo/branches/ladanyi/automake_test/doc/makefile
Removed:
hugo/branches/ladanyi/automake_test/doc/makefile
Modified:
hugo/branches/ladanyi/automake_test/Makefile.am
hugo/branches/ladanyi/automake_test/configure.ac
Log:
Placed 'doc' under the control of automake.
Modified: hugo/branches/ladanyi/automake_test/Makefile.am
==============================================================================
--- hugo/branches/ladanyi/automake_test/Makefile.am (original)
+++ hugo/branches/ladanyi/automake_test/Makefile.am Thu May 6 11:04:28 2004
@@ -1 +1,8 @@
-SUBDIRS = src
+SUBDIRS = src doc
+
+docs:
+ @cd doc \
+ && $(MAKE) $(AM_MAKEFLAGS) clean \
+ && $(MAKE) $(AM_MAKEFLAGS) all
+
+.PHONY: docs
Modified: hugo/branches/ladanyi/automake_test/configure.ac
==============================================================================
--- hugo/branches/ladanyi/automake_test/configure.ac (original)
+++ hugo/branches/ladanyi/automake_test/configure.ac Thu May 6 11:04:28 2004
@@ -1,8 +1,9 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT([HugoLib], [0.1], [etik-ol at cs.elte.hu], [hugo])
AC_CONFIG_AUX_DIR([config])
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE(1.7)
AC_CONFIG_SRCDIR([src/hugo/invalid.h])
+AC_PREREQ(2.57)
dnl Checks for programs.
AC_PROG_CC
@@ -24,5 +25,5 @@
AC_HEADER_STDC
AC_CHECK_FUNCS(gettimeofday)
-AC_CONFIG_FILES([Makefile src/Makefile src/hugo/Makefile src/test/Makefile])
+AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile src/hugo/Makefile src/test/Makefile])
AC_OUTPUT
Added: hugo/branches/ladanyi/automake_test/doc/Makefile.am
==============================================================================
--- (empty file)
+++ hugo/branches/ladanyi/automake_test/doc/Makefile.am Thu May 6 11:04:28 2004
@@ -0,0 +1,40 @@
+## TODO: Doxyfile should be generated from Doxyfile.in by configure. This way
+## the value of PROJECT_NAME, PROJRCT_NUMBER, PERL_PATH, etc. could be
+## substituted in configure-time.
+
+htmldir = $(datadir)/doc/@PACKAGE at -@VERSION@/html
+## htmldir = $(pkgdatadir)/doc
+
+EXTRA_DIST = Doxyfile html
+
+all-local: html/index.html
+
+## TODO: 'html/index.html' should depend on the files listed in Doxyfile's
+## INPUT variable.
+html/index.html: Doxyfile
+ -rm -rf html
+ doxygen Doxyfile
+
+## This is needed to make 'make dist' work even if the 'html' subdirectory
+## does not exist.
+html: html/index.html
+
+clean-local:
+ -rm -rf html
+
+install-data-local: html/index.html
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(htmldir)
+ @dir='$(<D)'; for p in $$dir/*.html $$dir/*.css $$dir/*.png $$dir/*.dot $$dir/*.php $$dir/*.idx ; do \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+ echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f"; \
+ $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$f; \
+ done
+
+uninstall-local: html/index.html
+ @$(NORMAL_UNINSTALL)
+ @dir='$(<D)'; for p in $$dir/*.html $$dir/*.css $$dir/*.png $$dir/*.dot $$dir/*.php $$dir/*.idx ; do \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+ echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
+ rm -f $(DESTDIR)$(htmldir)/$$f; \
+ done
More information about the Lemon-commits
mailing list