Changeset 1558


Ignore:
Timestamp:
Oct 10, 2008, 12:59:25 AM (13 years ago)
Author:
Peter
Message:

svn-clean target - see README.developer - is handy for the RM

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r1504 r1558  
    3232doc:; @(cd doc; $(MAKE) $(AM_MAKEFLAGS) $@)
    3333
     34.PHONY: svn-clean
     35if ENABLE_SVN_SUPPORT
     36svn-clean: maintainer-clean
     37  $(PERL) $(top_srcdir)/build_support/svn-clean $(srcdir)
     38else
     39svn-clean:
     40  @echo "$@ is not enabled - see configure option --enable-svn-support"
     41endif
  • trunk/README.developer

    r1487 r1558  
    2424http://www.gnu.org/software/libtool/manual/libtool.html#Debugging-executables
    2525
     26= Enable svn-clean =
     27
     28While `make distclean` will remove most generated files and leave you
     29in a state as though you just unpacked a dist, it is sometimes useful
     30to remove even more files. For this purpose there exists a target
     31`svn-clean` that will remove all files not under sunversion control.
     32The target is not active by default, but can to be turned on with
     33`./configure --enable-svn-support`. Use with care!
    2634
    2735----------------------------------------------------------------------
  • trunk/configure.ac

    r1542 r1558  
    173173YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-pedantic])
    174174YAT_CPP_ADD_FLAG([CPPFLAGS], [-DHAVE_INLINE=1])
    175 AC_ARG_ENABLE(debug,
     175AC_ARG_ENABLE([debug],
    176176  [AS_HELP_STRING([--enable-debug],[turn on debug options and code])])
    177177if test "${enable_debug}" = "yes" ; then
     
    184184  YAT_CXX_ADD_FLAG([AM_CXXFLAGS], [-O3])
    185185fi
     186
     187# enable target svn-clean
     188AC_ARG_ENABLE([svn-support],
     189   [AS_HELP_STRING([--enable-svn-support],
     190                   [enable svn support. Used by yat developers])],
     191   [enable_svn_support=yes])
     192if test "x$enable_svn_support" = "xyes"; then
     193  AC_CHECK_PROG([have_svnversion], [svnversion], [yes], [no])
     194  svn_error_msg="svn support cannot be enabled:"
     195  if test "x$have_svnversion" != "xyes"; then
     196    AC_MSG_ERROR([$svn_error_msg svnversion executable not found.])
     197  fi
     198  if test `svnversion -n $srcdir` == "exported"; then
     199    AC_MSG_ERROR([$svn_error_msg `$srcdir' is not an svn wc.])
     200  fi
     201  AC_PATH_PROG([PERL], [perl], [no])
     202  if test "x$PERL" = "xno"; then
     203    AC_MSG_ERROR([$svn_error_msg perl executable not found.])
     204  fi
     205  AC_PROG_PERL_MODULES([strict], ,
     206         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     207  AC_PROG_PERL_MODULES([Cwd], ,
     208         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     209  AC_PROG_PERL_MODULES([File::Path], ,
     210         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     211  AC_PROG_PERL_MODULES([Getopt::Long], ,
     212         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     213  AC_PROG_PERL_MODULES([Pod::Usage], ,
     214         [AC_MSG_ERROR([$svn_error_msg missing some perl module.])])
     215
     216fi
     217AM_CONDITIONAL([ENABLE_SVN_SUPPORT], [test "x$enable_svn_support" = "xyes"])
     218
    186219
    187220# check for quiet_NaN support in OS
Note: See TracChangeset for help on using the changeset viewer.