Changeset 9b8baa1 in rtems for c/build-tools/Makefile.in


Ignore:
Timestamp:
Mar 23, 1999, 6:02:17 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ca3fec49
Parents:
c69856c3
Message:

Automake II patch from Ralf Corsepius <corsepiu@…>. Email
description follows:

Description:

  • automake for *all* tool subdirectories (Makefile.am, configure.in etc.)
  • autogen now also considers CONFIG_HEADER (generates stamp-h.ins and config.h.ins)
  • c/src/tests/tools/generic/difftest and c/src/tests/tools/generic/sorttimes generated by configure scripts
  • c/update-tools/ampolish, beautifier for Makefile.ams, similar to acpolish
  • rtems-polish.sh added to c/update-tools/ + ampolish support
  • New subdirectory ./automake, contains automake -Makefile fragments to support RTEMS make "debug, debug_install, profile, profile_install" for native Makefile.ams (== ignore these make targets).
  • aclocal/rtems-top.m4's RTEMS_TOP now reads the automake makefile variable VERSION from RTEMS ./VERSION file.
  • ./configure.in uses the macros from aclocal + support for the tools' configure scripts

Remarks:

  • To run rtems-polish.sh, "cd <rtems-source-tree>; ./c/update-tools/rtems-polish.sh"
  • AFAIS, now all native subdirectories are converted to automake (Please drop me a note, if I forgot something).
  • Unless you notice something fatal, IMO the time has come for a public try (== snapshot). I do not intend to send more automake related patches within, say 2 weeks, to give these patches time to settle and to give me some time to think on how to continue.
  • The patch assumes installation to the new main installation directory [$(prefix)].
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/build-tools/Makefile.in

    rc69856c3 r9b8baa1  
    1414# $Id$
    1515#
     16
     17
     18# $Id$
     19
     20# Borrowed from automake-1.4, adapted to support RTEMS's
     21# "make debug", "make debug_install", "make profile", "make profile_install"
     22
     23# NOTE: This is a temporary work-around to keep
     24# "make debug" and "make debug_install" working.
     25# Once automake is fully integrated these make targets
     26# and this file will probably be removed
     27
     28
     29# $Id$
     30
     31# NOTE: This is a temporary work-around to keep
     32# "make debug" and "make debug_install" working.
     33# Once automake is fully integrated these make targets
     34# and this file will probably be removed
    1635
    1736
     
    6887PACKAGE = @PACKAGE@
    6988PROJECT_ROOT = @PROJECT_ROOT@
    70 RTEMS_ROOT = @RTEMS_ROOT@
    7189RTEMS_TOPdir = @RTEMS_TOPdir@
    7290VERSION = @VERSION@
     
    8098CONFIG_HEADER = ./src/config.h
    8199CONFIG_CLEAN_FILES =
    82 DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
     100DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in \
     101src/config.h.in src/stamp-h.in
    83102
    84103
     
    89108all: all-redirect
    90109.SUFFIXES:
    91 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     110$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../automake/subdirs.am $(top_srcdir)/../../automake/local.am
    92111        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
    93112
     
    103122$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
    104123        cd $(srcdir) && $(AUTOCONF)
     124
     125src/config.h: src/stamp-h
     126        @if test ! -f $@; then \
     127                rm -f src/stamp-h; \
     128                $(MAKE) src/stamp-h; \
     129        else :; fi
     130src/stamp-h: $(srcdir)/src/config.h.in $(top_builddir)/config.status
     131        cd $(top_builddir) \
     132          && CONFIG_FILES= CONFIG_HEADERS=src/config.h \
     133             $(SHELL) ./config.status
     134        @echo timestamp > src/stamp-h 2> /dev/null
     135$(srcdir)/src/config.h.in: $(srcdir)/src/stamp-h.in
     136        @if test ! -f $@; then \
     137                rm -f $(srcdir)/src/stamp-h.in; \
     138                $(MAKE) $(srcdir)/src/stamp-h.in; \
     139        else :; fi
     140$(srcdir)/src/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
     141        cd $(top_srcdir) && $(AUTOHEADER)
     142        @echo timestamp > $(srcdir)/src/stamp-h.in 2> /dev/null
     143
     144mostlyclean-hdr:
     145
     146clean-hdr:
     147
     148distclean-hdr:
     149        -rm -f src/config.h
     150
     151maintainer-clean-hdr:
    105152
    106153# This directory's subdirectories are mostly independent; you can cd
     
    292339
    293340maintainer-clean-generic:
    294 mostlyclean-am:  mostlyclean-tags mostlyclean-generic
     341mostlyclean-am:  mostlyclean-hdr mostlyclean-tags mostlyclean-generic
    295342
    296343mostlyclean: mostlyclean-recursive
    297344
    298 clean-am:  clean-tags clean-generic mostlyclean-am
     345clean-am:  clean-hdr clean-tags clean-generic mostlyclean-am
    299346
    300347clean: clean-recursive
    301348
    302 distclean-am:  distclean-tags distclean-generic clean-am
     349distclean-am:  distclean-hdr distclean-tags distclean-generic clean-am
    303350
    304351distclean: distclean-recursive
    305352        -rm -f config.status
    306353
    307 maintainer-clean-am:  maintainer-clean-tags maintainer-clean-generic \
    308                 distclean-am
     354maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-tags \
     355                maintainer-clean-generic distclean-am
    309356        @echo "This command is intended for maintainers to use;"
    310357        @echo "it deletes files that may require special tools to rebuild."
     
    313360        -rm -f config.status
    314361
    315 .PHONY: install-data-recursive uninstall-data-recursive \
    316 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
    317 uninstalldirs-recursive all-recursive check-recursive \
    318 installcheck-recursive info-recursive dvi-recursive \
    319 mostlyclean-recursive distclean-recursive clean-recursive \
     362.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
     363install-data-recursive uninstall-data-recursive install-exec-recursive \
     364uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
     365all-recursive check-recursive installcheck-recursive info-recursive \
     366dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
    320367maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
    321368distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
     
    327374
    328375
     376debug-recursive debug_install-recursive \
     377profile-recursive profile_install-recursive:
     378        @set fnord $(MAKEFLAGS); amf=$$2; \
     379        dot_seen=no; \
     380        target=`echo $@ | sed s/-recursive//`; \
     381        list='$(SUBDIRS)'; for subdir in $$list; do \
     382          echo "Making $$target in $$subdir"; \
     383          if test "$$subdir" = "."; then \
     384            dot_seen=yes; \
     385            local_target="$$target-am"; \
     386          else \
     387            local_target="$$target"; \
     388          fi; \
     389          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
     390           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
     391        done; \
     392        if test "$$dot_seen" = "no"; then \
     393          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
     394        fi; test -z "$$fail"
     395
     396debug: debug-recursive
     397
     398debug_install: debug_install-recursive
     399
     400profile: profile-recursive
     401
     402profile_install: profile_install-recursive
     403
     404.PHONY: \
     405debug debug-recursive debug_install \
     406profile profile-recursive profile_install
     407
     408debug-am:
     409
     410debug: debug-am
     411
     412debug_install-am:
     413
     414debug_install: debug_install-am
     415
     416profile-am:
     417
     418profile: profile-am
     419
     420profile_install-am:
     421
     422profile_install: profile_install-am
     423
     424.PHONY: debug debug_install profile profile_install
     425
    329426# Tell versions [3.59,3.63) of GNU make to not export all variables.
    330427# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.