Changeset 2739 for trunk/Makefile.am


Ignore:
Timestamp:
Jun 8, 2012, 12:22:47 AM (11 years ago)
Author:
Peter
Message:

refs #703 using a non-recursive Makefile. Old Makefile.am are kept but
rather than being source for sub-Makefiles they are included into
topdir Makefile.am. This implies Make rules must be modified to work
from topdir. A temporary code snippet will remove old Makefiles and
Makefile.ins at configure time. This code will be removed in a week or
so and is mainly there for autobuilds and prepare for future
sub-Makefiles (that will have a all: rule in sub-directories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r2604 r2739  
    2828ACLOCAL_AMFLAGS = -I m4
    2929
    30 SUBDIRS = build_support m4 yat test doc
     30CLEANFILES =
     31DOXYGEN_INPUT =
     32EXTRA_DIST =
     33MOSTLYCLEANFILES =
    3134
    32 .PHONY: doc doxygen_mk maintainer-check news-check svn-check svn-clean release
    33 doc: doxygen_mk
    34   @(cd doc; $(MAKE) $(AM_MAKEFLAGS) $@)
     35FORCE:
    3536
    36 doxygen_mk:; @(cd yat; $(MAKE) $(AM_MAKEFLAGS) $@)
     37include build_support/Makefile.am
     38## yat/Makefile.am contains DOXYGEN definitions, so needs to be
     39## included before doc/Makefile
     40include yat/Makefile.am
     41include doc/Makefile.am
     42include m4/Makefile.am
     43include test/Makefile.am
    3744
    38 lazycheck recheck: all
    39   @(cd test && $(MAKE) $(AM_MAKEFLAGS) $@)
     45OLDFILES =
     46OLDFILES += $(srcdir)/build_support/Makefile.in
     47OLDFILES += build_support/Makefile
     48OLDFILES += $(srcdir)/doc/Makefile.in
     49OLDFILES += doc/Makefile
     50OLDFILES += $(srcdir)/m4/Makefile.in
     51OLDFILES += m4/Makefile
     52OLDFILES += $(srcdir)/test/Makefile.in
     53OLDFILES += test/Makefile
     54OLDFILES += $(srcdir)/yat/Makefile.in
     55OLDFILES += yat/Makefile
     56OLDFILES += $(srcdir)/classifier/Makefile.in
     57OLDFILES += classifier/Makefile
     58OLDFILES += $(srcdir)/normalizer/Makefile.in
     59OLDFILES += normalizer/Makefile
     60OLDFILES += $(srcdir)/omic/Makefile.in
     61OLDFILES += omic/Makefile
     62OLDFILES += $(srcdir)/random/Makefile.in
     63OLDFILES += random/Makefile
     64OLDFILES += $(srcdir)/regression/Makefile.in
     65OLDFILES += regression/Makefile
     66OLDFILES += $(srcdir)/statistics/Makefile.in
     67OLDFILES += statistics/Makefile
     68OLDFILES += $(srcdir)/utility/Makefile.in
     69OLDFILES += utility/Makefile
    4070
     71# temporary target (for automatic builds)
     72all-local: Makefile
     73  rm -f $(OLDFILES)
     74
     75clean-local:
     76  rm -rf doc/$(DX_HTML_OUTPUT) test/yathello test/testSubDir
     77
     78.PHONY: doc maintainer-check news-check svn-check svn-clean release
    4179
    4280# like the normal install target, but does not update header files
     
    4684
    4785###############################################################
    48 ## 
     86##
    4987## Some targets useful for the maintainer
    5088##
     
    63101  esac
    64102
    65 maintainer-check-local: 
     103maintainer-check-local:
    66104  mkdir _inst
    67105  @mcl_install=`cd _inst && pwd` \
     
    69107  && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install \
    70108  && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install install \
    71   && cd test && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install installcheck
     109  && $(MAKE) $(AM_MAKEFLAGS) prefix=$$mcl_install installcheck
    72110
    73111# check that yat.pc is correctly generated with different combinations
     
    78116yat-pc-check:
    79117  $(SHELL) $(srcdir)/configure $(DISTCHECK_CONFIGURE_FLAGS) \
    80   && cd build_support \
    81   && rm -f yat.pc && make \
    82   && $(GREP) '^prefix=/usr/local' yat.pc \
    83   && $(GREP) '^exec_prefix=$${prefix}' yat.pc \
    84   && $(GREP) '^libdir=$${exec_prefix}/lib' yat.pc \
    85   && $(GREP) '^includedir=$${prefix}/include' yat.pc \
    86   && rm -f yat.pc && make prefix=foo \
    87   && $(GREP) '^prefix=foo' yat.pc \
    88   && $(GREP) '^exec_prefix=$${prefix}' yat.pc \
    89   && $(GREP) '^libdir=$${exec_prefix}/lib' yat.pc \
    90   && $(GREP) '^includedir=$${prefix}/include' yat.pc \
    91   && rm -f yat.pc && make prefix=foo exec_prefix=bar \
    92   && $(GREP) '^prefix=foo' yat.pc \
    93   && $(GREP) '^exec_prefix=bar' yat.pc \
    94   && $(GREP) '^libdir=$${exec_prefix}/lib' yat.pc \
    95   && $(GREP) '^includedir=$${prefix}/include' yat.pc \
    96   && rm -f yat.pc && make prefix=foo exec_prefix=bar libdir=baz includedir=quz\
    97   && $(GREP) '^prefix=foo' yat.pc \
    98   && $(GREP) '^exec_prefix=bar' yat.pc \
    99   && $(GREP) '^libdir=baz' yat.pc \
    100   && $(GREP) '^includedir=quz' yat.pc \
     118  && rm -f build_support/yat.pc && make \
     119  && $(GREP) '^prefix=/usr/local' build_support/yat.pc \
     120  && $(GREP) '^exec_prefix=$${prefix}' build_support/yat.pc \
     121  && $(GREP) '^libdir=$${exec_prefix}/lib' build_support/yat.pc \
     122  && $(GREP) '^includedir=$${prefix}/include' build_support/yat.pc \
     123  && rm -f build_support/yat.pc && make prefix=foo \
     124  && $(GREP) '^prefix=foo' build_support/yat.pc \
     125  && $(GREP) '^exec_prefix=$${prefix}' build_support/yat.pc \
     126  && $(GREP) '^libdir=$${exec_prefix}/lib' build_support/yat.pc \
     127  && $(GREP) '^includedir=$${prefix}/include' build_support/yat.pc \
     128  && rm -f build_support/yat.pc && make prefix=foo exec_prefix=bar \
     129  && $(GREP) '^prefix=foo' build_support/yat.pc \
     130  && $(GREP) '^exec_prefix=bar' build_support/yat.pc \
     131  && $(GREP) '^libdir=$${exec_prefix}/lib' build_support/yat.pc \
     132  && $(GREP) '^includedir=$${prefix}/include' build_support/yat.pc \
     133  && rm -f build_support/yat.pc \
     134  && make prefix=foo exec_prefix=bar libdir=baz includedir=quz \
     135  && $(GREP) '^prefix=foo' build_support/yat.pc \
     136  && $(GREP) '^exec_prefix=bar' build_support/yat.pc \
     137  && $(GREP) '^libdir=baz' build_support/yat.pc \
     138  && $(GREP) '^includedir=quz' build_support/yat.pc \
    101139  && cd .. \
    102140  && $(SHELL) $(srcdir)/configure $(DISTCHECK_CONFIGURE_FLAGS) exec_prefix=/t \
    103141  && cd build_support \
    104   && rm -f yat.pc && make \
    105   && $(GREP) '^prefix=/usr/local' yat.pc \
    106   && $(GREP) '^exec_prefix=/t' yat.pc \
    107   && $(GREP) '^libdir=$${exec_prefix}/lib' yat.pc \
    108   && $(GREP) '^includedir=$${prefix}/include' yat.pc \
    109   && rm -f yat.pc && make prefix=foo \
    110   && $(GREP) '^prefix=foo' yat.pc \
    111   && $(GREP) '^exec_prefix=/t' yat.pc \
    112   && $(GREP) '^libdir=$${exec_prefix}/lib' yat.pc \
    113   && $(GREP) '^includedir=$${prefix}/include' yat.pc \
    114   && rm -f yat.pc && make prefix=foo exec_prefix=bar \
    115   && $(GREP) '^prefix=foo' yat.pc \
    116   && $(GREP) '^exec_prefix=bar' yat.pc \
    117   && $(GREP) '^libdir=$${exec_prefix}/lib' yat.pc \
    118   && $(GREP) '^includedir=$${prefix}/include' yat.pc \
    119   && rm -f yat.pc && make prefix=foo exec_prefix=bar libdir=baz includedir=quz\
    120   && $(GREP) '^prefix=foo' yat.pc \
    121   && $(GREP) '^exec_prefix=bar' yat.pc \
    122   && $(GREP) '^libdir=baz' yat.pc \
    123   && $(GREP) '^includedir=quz' yat.pc 
     142  && rm -f build_support/yat.pc && make \
     143  && $(GREP) '^prefix=/usr/local' build_support/yat.pc \
     144  && $(GREP) '^exec_prefix=/t' build_support/yat.pc \
     145  && $(GREP) '^libdir=$${exec_prefix}/lib' build_support/yat.pc \
     146  && $(GREP) '^includedir=$${prefix}/include' build_support/yat.pc \
     147  && rm -f build_support/yat.pc && make prefix=foo \
     148  && $(GREP) '^prefix=foo' build_support/yat.pc \
     149  && $(GREP) '^exec_prefix=/t' build_support/yat.pc \
     150  && $(GREP) '^libdir=$${exec_prefix}/lib' build_support/yat.pc \
     151  && $(GREP) '^includedir=$${prefix}/include' build_support/yat.pc \
     152  && rm -f build_support/yat.pc && make prefix=foo exec_prefix=bar \
     153  && $(GREP) '^prefix=foo' build_support/yat.pc \
     154  && $(GREP) '^exec_prefix=bar' build_support/yat.pc \
     155  && $(GREP) '^libdir=$${exec_prefix}/lib' build_support/yat.pc \
     156  && $(GREP) '^includedir=$${prefix}/include' build_support/yat.pc \
     157  && rm -f build_support/yat.pc \
     158  && make prefix=foo exec_prefix=bar libdir=baz includedir=quz \
     159  && $(GREP) '^prefix=foo' build_support/yat.pc \
     160  && $(GREP) '^exec_prefix=bar' build_support/yat.pc \
     161  && $(GREP) '^libdir=baz' build_support/yat.pc \
     162  && $(GREP) '^includedir=quz' build_support/yat.pc
    124163
    125164SVN = svn
Note: See TracChangeset for help on using the changeset viewer.