Changeset b6529a3 in rtems


Ignore:
Timestamp:
04/19/99 13:35:24 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ecb2755
Parents:
183fa829
Message:

Patch from Ralf Corsepius <corsepiu@…> to reorganize
the build-tools layout to simplify it.

This script reorganizes and simpilfies the build-tools subdirectories.
It moves all source-files and scripts to c/build-tools/. This will
enable use to use this directory directly to refer to the build-tools
instead of copying them around in a "preinstall" step in future.
However, RTEMS's autoconf Makefile.ins and *.cfg files are not yet
prepared to apply this approach and therefore require additional work.

Files:
52 deleted
8 edited

Legend:

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

    r183fa829 rb6529a3  
    66ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
    77
    8 SUBDIRS = scripts src
     8bin_PROGRAMS=cklength eolstrip packhex unhex
    99
    10 include $(top_srcdir)/../../automake/subdirs.am
     10cklength_SOURCES = cklength.c
     11eolstrip_SOURCES = eolstrip.c
     12packhex_SOURCES  = packhex.c
     13unhex_SOURCES    = unhex.c
     14
     15bin_SCRIPTS=\
     16install-if-change \
     17lock-directory \
     18unlock-directory \
     19rcs-clean
     20
     21noinst_SCRIPTS = search-id.sh
     22
     23#
     24# HACK: Install to build directory
     25#
     26install-exec-local: $(bin_PROGRAMS) $(bin_SCRIPTS)
     27        if test -n "${RTEMS_BSP}"; then \
     28          $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     29          $(INSTALL_SCRIPT) $(bin_SCRIPTS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     30          $(INSTALL_PROGRAM) $(bin_PROGRAMS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     31        fi
     32
     33preinstall: install-exec-local
     34
    1135include $(top_srcdir)/../../automake/local.am
  • c/build-tools/Makefile.in

    r183fa829 rb6529a3  
    1414# $Id$
    1515#
    16 
    1716
    1817
     
    7776ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
    7877
    79 SUBDIRS = scripts src
     78bin_PROGRAMS = cklength eolstrip packhex unhex
     79
     80cklength_SOURCES = cklength.c
     81eolstrip_SOURCES = eolstrip.c
     82packhex_SOURCES = packhex.c
     83unhex_SOURCES = unhex.c
     84
     85bin_SCRIPTS =  install-if-change lock-directory unlock-directory rcs-clean
     86
     87
     88noinst_SCRIPTS = search-id.sh
    8089ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    8190mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
    82 CONFIG_HEADER = ./src/config.h
    83 CONFIG_CLEAN_FILES =
    84 DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
     91CONFIG_HEADER = config.h
     92CONFIG_CLEAN_FILES =  install-if-change lock-directory rcs-clean \
     93unlock-directory
     94bin_PROGRAMS =  cklength$(EXEEXT) eolstrip$(EXEEXT) packhex$(EXEEXT) \
     95unhex$(EXEEXT)
     96PROGRAMS =  $(bin_PROGRAMS)
     97
     98
     99DEFS = @DEFS@ -I. -I$(srcdir) -I.
     100CPPFLAGS = @CPPFLAGS@
     101LDFLAGS = @LDFLAGS@
     102LIBS = @LIBS@
     103cklength_OBJECTS =  cklength.o
     104cklength_LDADD = $(LDADD)
     105cklength_DEPENDENCIES =
     106cklength_LDFLAGS =
     107eolstrip_OBJECTS =  eolstrip.o
     108eolstrip_LDADD = $(LDADD)
     109eolstrip_DEPENDENCIES =
     110eolstrip_LDFLAGS =
     111packhex_OBJECTS =  packhex.o
     112packhex_LDADD = $(LDADD)
     113packhex_DEPENDENCIES =
     114packhex_LDFLAGS =
     115unhex_OBJECTS =  unhex.o
     116unhex_LDADD = $(LDADD)
     117unhex_DEPENDENCIES =
     118unhex_LDFLAGS =
     119SCRIPTS =  $(bin_SCRIPTS) $(noinst_SCRIPTS)
     120
     121CFLAGS = @CFLAGS@
     122COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     123CCLD = $(CC)
     124LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
     125DIST_COMMON =  README ./stamp-h.in Makefile.am Makefile.in aclocal.m4 \
     126config.h.in configure configure.in install-if-change.in \
     127lock-directory.in rcs-clean.in unlock-directory.in
    85128
    86129
     
    89132TAR = tar
    90133GZIP_ENV = --best
     134DEP_FILES =  .deps/cklength.P .deps/eolstrip.P .deps/packhex.P \
     135.deps/unhex.P
     136SOURCES = $(cklength_SOURCES) $(eolstrip_SOURCES) $(packhex_SOURCES) $(unhex_SOURCES)
     137OBJECTS = $(cklength_OBJECTS) $(eolstrip_OBJECTS) $(packhex_OBJECTS) $(unhex_OBJECTS)
     138
    91139all: all-redirect
    92140.SUFFIXES:
    93 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../automake/subdirs.am $(top_srcdir)/../../automake/local.am
     141.SUFFIXES: .S .c .o .s
     142$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../automake/local.am
    94143        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
    95144
     
    106155        cd $(srcdir) && $(AUTOCONF)
    107156
    108 # This directory's subdirectories are mostly independent; you can cd
    109 # into them and run `make' without going through this Makefile.
    110 # To change the values of `make' variables: instead of editing Makefiles,
    111 # (1) if the variable is set in `config.status', edit `config.status'
    112 #     (which will cause the Makefiles to be regenerated when you run `make');
    113 # (2) otherwise, pass the desired values on the `make' command line.
    114 
    115 @SET_MAKE@
    116 
    117 all-recursive install-data-recursive install-exec-recursive \
    118 installdirs-recursive install-recursive uninstall-recursive  \
    119 check-recursive installcheck-recursive info-recursive dvi-recursive:
    120         @set fnord $(MAKEFLAGS); amf=$$2; \
    121         dot_seen=no; \
    122         target=`echo $@ | sed s/-recursive//`; \
    123         list='$(SUBDIRS)'; for subdir in $$list; do \
    124           echo "Making $$target in $$subdir"; \
    125           if test "$$subdir" = "."; then \
    126             dot_seen=yes; \
    127             local_target="$$target-am"; \
    128           else \
    129             local_target="$$target"; \
    130           fi; \
    131           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
    132            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
    133         done; \
    134         if test "$$dot_seen" = "no"; then \
    135           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
    136         fi; test -z "$$fail"
    137 
    138 mostlyclean-recursive clean-recursive distclean-recursive \
    139 maintainer-clean-recursive:
    140         @set fnord $(MAKEFLAGS); amf=$$2; \
    141         dot_seen=no; \
    142         rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
    143           rev="$$subdir $$rev"; \
    144           test "$$subdir" = "." && dot_seen=yes; \
    145         done; \
    146         test "$$dot_seen" = "no" && rev=". $$rev"; \
    147         target=`echo $@ | sed s/-recursive//`; \
    148         for subdir in $$rev; do \
    149           echo "Making $$target in $$subdir"; \
    150           if test "$$subdir" = "."; then \
    151             local_target="$$target-am"; \
    152           else \
    153             local_target="$$target"; \
    154           fi; \
    155           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
    156            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
    157         done && test -z "$$fail"
    158 tags-recursive:
    159         list='$(SUBDIRS)'; for subdir in $$list; do \
    160           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
     157config.h: stamp-h
     158        @if test ! -f $@; then \
     159                rm -f stamp-h; \
     160                $(MAKE) stamp-h; \
     161        else :; fi
     162stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
     163        cd $(top_builddir) \
     164          && CONFIG_FILES= CONFIG_HEADERS=config.h \
     165             $(SHELL) ./config.status
     166        @echo timestamp > stamp-h 2> /dev/null
     167$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
     168        @if test ! -f $@; then \
     169                rm -f $(srcdir)/stamp-h.in; \
     170                $(MAKE) $(srcdir)/stamp-h.in; \
     171        else :; fi
     172$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
     173        cd $(top_srcdir) && $(AUTOHEADER)
     174        @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
     175
     176mostlyclean-hdr:
     177
     178clean-hdr:
     179
     180distclean-hdr:
     181        -rm -f config.h
     182
     183maintainer-clean-hdr:
     184install-if-change: $(top_builddir)/config.status install-if-change.in
     185        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     186lock-directory: $(top_builddir)/config.status lock-directory.in
     187        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     188rcs-clean: $(top_builddir)/config.status rcs-clean.in
     189        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     190unlock-directory: $(top_builddir)/config.status unlock-directory.in
     191        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     192
     193mostlyclean-binPROGRAMS:
     194
     195clean-binPROGRAMS:
     196        -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
     197
     198distclean-binPROGRAMS:
     199
     200maintainer-clean-binPROGRAMS:
     201
     202install-binPROGRAMS: $(bin_PROGRAMS)
     203        @$(NORMAL_INSTALL)
     204        $(mkinstalldirs) $(DESTDIR)$(bindir)
     205        @list='$(bin_PROGRAMS)'; for p in $$list; do \
     206          if test -f $$p; then \
     207            echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
     208             $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
     209          else :; fi; \
     210        done
     211
     212uninstall-binPROGRAMS:
     213        @$(NORMAL_UNINSTALL)
     214        list='$(bin_PROGRAMS)'; for p in $$list; do \
     215          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
     216        done
     217
     218.s.o:
     219        $(COMPILE) -c $<
     220
     221.S.o:
     222        $(COMPILE) -c $<
     223
     224mostlyclean-compile:
     225        -rm -f *.o core *.core
     226
     227clean-compile:
     228
     229distclean-compile:
     230        -rm -f *.tab.c
     231
     232maintainer-clean-compile:
     233
     234cklength$(EXEEXT): $(cklength_OBJECTS) $(cklength_DEPENDENCIES)
     235        @rm -f cklength$(EXEEXT)
     236        $(LINK) $(cklength_LDFLAGS) $(cklength_OBJECTS) $(cklength_LDADD) $(LIBS)
     237
     238eolstrip$(EXEEXT): $(eolstrip_OBJECTS) $(eolstrip_DEPENDENCIES)
     239        @rm -f eolstrip$(EXEEXT)
     240        $(LINK) $(eolstrip_LDFLAGS) $(eolstrip_OBJECTS) $(eolstrip_LDADD) $(LIBS)
     241
     242packhex$(EXEEXT): $(packhex_OBJECTS) $(packhex_DEPENDENCIES)
     243        @rm -f packhex$(EXEEXT)
     244        $(LINK) $(packhex_LDFLAGS) $(packhex_OBJECTS) $(packhex_LDADD) $(LIBS)
     245
     246unhex$(EXEEXT): $(unhex_OBJECTS) $(unhex_DEPENDENCIES)
     247        @rm -f unhex$(EXEEXT)
     248        $(LINK) $(unhex_LDFLAGS) $(unhex_OBJECTS) $(unhex_LDADD) $(LIBS)
     249
     250install-binSCRIPTS: $(bin_SCRIPTS)
     251        @$(NORMAL_INSTALL)
     252        $(mkinstalldirs) $(DESTDIR)$(bindir)
     253        @list='$(bin_SCRIPTS)'; for p in $$list; do \
     254          if test -f $$p; then \
     255            echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
     256            $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     257          else if test -f $(srcdir)/$$p; then \
     258            echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
     259            $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     260          else :; fi; fi; \
     261        done
     262
     263uninstall-binSCRIPTS:
     264        @$(NORMAL_UNINSTALL)
     265        list='$(bin_SCRIPTS)'; for p in $$list; do \
     266          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
    161267        done
    162268
     
    171277          && mkid -f$$here/ID $$unique $(LISP)
    172278
    173 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
     279TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
    174280        tags=; \
    175281        here=`pwd`; \
    176         list='$(SUBDIRS)'; for subdir in $$list; do \
    177    if test "$$subdir" = .; then :; else \
    178             test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
    179    fi; \
    180         done; \
    181282        list='$(SOURCES) $(HEADERS)'; \
    182283        unique=`for i in $$list; do echo $$i; done | \
    183284          awk '    { files[$$0] = 1; } \
    184285               END { for (i in files) print i; }'`; \
    185         test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
    186           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
     286        test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
     287          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
    187288
    188289mostlyclean-tags:
     
    248349          fi; \
    249350        done
    250         for subdir in $(SUBDIRS); do \
    251           if test "$$subdir" = .; then :; else \
    252             test -d $(distdir)/$$subdir \
    253             || mkdir $(distdir)/$$subdir \
    254             || exit 1; \
    255             chmod 777 $(distdir)/$$subdir; \
    256             (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
    257               || exit 1; \
    258           fi; \
    259         done
     351
     352DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
     353
     354-include $(DEP_FILES)
     355
     356mostlyclean-depend:
     357
     358clean-depend:
     359
     360distclean-depend:
     361        -rm -rf .deps
     362
     363maintainer-clean-depend:
     364
     365%.o: %.c
     366        @echo '$(COMPILE) -c $<'; \
     367        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     368        @-cp .deps/$(*F).pp .deps/$(*F).P; \
     369        tr ' ' '\012' < .deps/$(*F).pp \
     370          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     371            >> .deps/$(*F).P; \
     372        rm .deps/$(*F).pp
     373
     374%.lo: %.c
     375        @echo '$(LTCOMPILE) -c $<'; \
     376        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     377        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
     378          < .deps/$(*F).pp > .deps/$(*F).P; \
     379        tr ' ' '\012' < .deps/$(*F).pp \
     380          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     381            >> .deps/$(*F).P; \
     382        rm -f .deps/$(*F).pp
    260383info-am:
    261 info: info-recursive
     384info: info-am
    262385dvi-am:
    263 dvi: dvi-recursive
     386dvi: dvi-am
    264387check-am: all-am
    265 check: check-recursive
     388check: check-am
    266389installcheck-am:
    267 installcheck: installcheck-recursive
    268 install-exec-am:
    269 install-exec: install-exec-recursive
     390installcheck: installcheck-am
     391all-recursive-am: config.h
     392        $(MAKE) $(AM_MAKEFLAGS) all-recursive
     393
     394install-exec-am: install-binPROGRAMS install-binSCRIPTS \
     395                install-exec-local
     396install-exec: install-exec-am
    270397
    271398install-data-am:
    272 install-data: install-data-recursive
     399install-data: install-data-am
    273400
    274401install-am: all-am
    275402        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
    276 install: install-recursive
    277 uninstall-am:
    278 uninstall: uninstall-recursive
    279 all-am: Makefile
    280 all-redirect: all-recursive
     403install: install-am
     404uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS
     405uninstall: uninstall-am
     406all-am: Makefile $(PROGRAMS) $(SCRIPTS) config.h
     407all-redirect: all-am
    281408install-strip:
    282409        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
    283 installdirs: installdirs-recursive
    284 installdirs-am:
     410installdirs:
     411        $(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(bindir)
    285412
    286413
     
    294421
    295422maintainer-clean-generic:
    296 mostlyclean-am:  mostlyclean-tags mostlyclean-generic
    297 
    298 mostlyclean: mostlyclean-recursive
    299 
    300 clean-am:  clean-tags clean-generic mostlyclean-am
    301 
    302 clean: clean-recursive
    303 
    304 distclean-am:  distclean-tags distclean-generic clean-am
    305 
    306 distclean: distclean-recursive
     423mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
     424                mostlyclean-compile mostlyclean-tags mostlyclean-depend \
     425                mostlyclean-generic
     426
     427mostlyclean: mostlyclean-am
     428
     429clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-tags \
     430                clean-depend clean-generic mostlyclean-am
     431
     432clean: clean-am
     433
     434distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile \
     435                distclean-tags distclean-depend distclean-generic \
     436                clean-am
     437
     438distclean: distclean-am
    307439        -rm -f config.status
    308440
    309 maintainer-clean-am:  maintainer-clean-tags maintainer-clean-generic \
     441maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
     442                maintainer-clean-compile maintainer-clean-tags \
     443                maintainer-clean-depend maintainer-clean-generic \
    310444                distclean-am
    311445        @echo "This command is intended for maintainers to use;"
    312446        @echo "it deletes files that may require special tools to rebuild."
    313447
    314 maintainer-clean: maintainer-clean-recursive
     448maintainer-clean: maintainer-clean-am
    315449        -rm -f config.status
    316450
    317 .PHONY: install-data-recursive uninstall-data-recursive \
    318 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
    319 uninstalldirs-recursive all-recursive check-recursive \
    320 installcheck-recursive info-recursive dvi-recursive \
    321 mostlyclean-recursive distclean-recursive clean-recursive \
    322 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
    323 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
    324 dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
    325 install-exec install-data-am install-data install-am install \
    326 uninstall-am uninstall all-redirect all-am all installdirs-am \
    327 installdirs mostlyclean-generic distclean-generic clean-generic \
     451.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
     452mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
     453maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
     454mostlyclean-compile distclean-compile clean-compile \
     455maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS tags \
     456mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
     457distdir mostlyclean-depend distclean-depend clean-depend \
     458maintainer-clean-depend info-am info dvi-am dvi check check-am \
     459installcheck-am installcheck all-recursive-am install-exec-local \
     460install-exec-am install-exec install-data-am install-data install-am \
     461install uninstall-am uninstall all-redirect all-am all installdirs \
     462mostlyclean-generic distclean-generic clean-generic \
    328463maintainer-clean-generic clean mostlyclean distclean maintainer-clean
    329464
    330465
    331 preinstall-recursive \
    332 debug-recursive debug_install-recursive \
    333 profile-recursive profile_install-recursive:
    334         @set fnord $(MAKEFLAGS); amf=$$2; \
    335         dot_seen=no; \
    336         target=`echo $@ | sed s/-recursive//`; \
    337         list='$(SUBDIRS)'; for subdir in $$list; do \
    338           echo "Making $$target in $$subdir"; \
    339           if test "$$subdir" = "."; then \
    340             dot_seen=yes; \
    341             local_target="$$target-am"; \
    342           else \
    343             local_target="$$target"; \
    344           fi; \
    345           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
    346            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
    347         done; \
    348         if test "$$dot_seen" = "no"; then \
    349           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
    350         fi; test -z "$$fail"
    351 
    352 debug: debug-recursive
    353 
    354 debug_install: debug_install-recursive
    355 
    356 profile: profile-recursive
    357 
    358 profile_install: profile_install-recursive
    359 
    360 preinstall: preinstall-recursive
    361 
    362 .PHONY: \
    363 debug debug-recursive \
    364 debug_install \
    365 profile profile-recursive \
    366 profile_install \
    367 preinstall preinstall-recursive
     466#
     467# HACK: Install to build directory
     468#
     469install-exec-local: $(bin_PROGRAMS) $(bin_SCRIPTS)
     470        if test -n "${RTEMS_BSP}"; then \
     471          $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     472          $(INSTALL_SCRIPT) $(bin_SCRIPTS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     473          $(INSTALL_PROGRAM) $(bin_PROGRAMS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     474        fi
     475
     476preinstall: install-exec-local
    368477
    369478debug-am:
  • c/build-tools/configure

    r183fa829 rb6529a3  
    454454# A filename unique to this package, relative to the directory that
    455455# configure is in, which we can look for to find out if srcdir is correct.
    456 ac_unique_file=scripts
     456ac_unique_file=README
    457457
    458458# Find the source files, if location was not specified.
     
    13581358
    13591359trap 'rm -fr `echo "Makefile
    1360 src/Makefile
    1361 scripts/Makefile
    1362 scripts/install-if-change
    1363 scripts/lock-directory
    1364 scripts/rcs-clean
    1365 scripts/unlock-directory
    1366  src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     1360install-if-change
     1361lock-directory
     1362rcs-clean
     1363unlock-directory
     1364 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    13671365EOF
    13681366cat >> $CONFIG_STATUS <<EOF
     
    14601458
    14611459CONFIG_FILES=\${CONFIG_FILES-"Makefile
    1462 src/Makefile
    1463 scripts/Makefile
    1464 scripts/install-if-change
    1465 scripts/lock-directory
    1466 scripts/rcs-clean
    1467 scripts/unlock-directory
     1460install-if-change
     1461lock-directory
     1462rcs-clean
     1463unlock-directory
    14681464"}
    14691465EOF
     
    15471543EOF
    15481544cat >> $CONFIG_STATUS <<EOF
    1549   CONFIG_HEADERS="src/config.h"
     1545  CONFIG_HEADERS="config.h"
    15501546EOF
    15511547cat >> $CONFIG_STATUS <<\EOF
     
    16381634EOF
    16391635cat >> $CONFIG_STATUS <<\EOF
    1640 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
     1636test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    16411637
    16421638exit 0
  • c/build-tools/configure.in

    r183fa829 rb6529a3  
    44
    55AC_PREREQ(2.13)
    6 AC_INIT(scripts)
     6AC_INIT(README)
    77AC_CONFIG_AUX_DIR(../..)
    88RTEMS_TOP(../..)
     
    1818RTEMS_PATH_KSH
    1919
    20 AM_CONFIG_HEADER(src/config.h)
     20AM_CONFIG_HEADER(config.h)
    2121
    2222AC_OUTPUT(
    2323Makefile
    24 src/Makefile
    25 scripts/Makefile
    26 scripts/install-if-change
    27 scripts/lock-directory
    28 scripts/rcs-clean
    29 scripts/unlock-directory
     24install-if-change
     25lock-directory
     26rcs-clean
     27unlock-directory
    3028)
  • tools/build/Makefile.am

    r183fa829 rb6529a3  
    66ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
    77
    8 SUBDIRS = scripts src
     8bin_PROGRAMS=cklength eolstrip packhex unhex
    99
    10 include $(top_srcdir)/../../automake/subdirs.am
     10cklength_SOURCES = cklength.c
     11eolstrip_SOURCES = eolstrip.c
     12packhex_SOURCES  = packhex.c
     13unhex_SOURCES    = unhex.c
     14
     15bin_SCRIPTS=\
     16install-if-change \
     17lock-directory \
     18unlock-directory \
     19rcs-clean
     20
     21noinst_SCRIPTS = search-id.sh
     22
     23#
     24# HACK: Install to build directory
     25#
     26install-exec-local: $(bin_PROGRAMS) $(bin_SCRIPTS)
     27        if test -n "${RTEMS_BSP}"; then \
     28          $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     29          $(INSTALL_SCRIPT) $(bin_SCRIPTS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     30          $(INSTALL_PROGRAM) $(bin_PROGRAMS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     31        fi
     32
     33preinstall: install-exec-local
     34
    1135include $(top_srcdir)/../../automake/local.am
  • tools/build/Makefile.in

    r183fa829 rb6529a3  
    1414# $Id$
    1515#
    16 
    1716
    1817
     
    7776ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
    7877
    79 SUBDIRS = scripts src
     78bin_PROGRAMS = cklength eolstrip packhex unhex
     79
     80cklength_SOURCES = cklength.c
     81eolstrip_SOURCES = eolstrip.c
     82packhex_SOURCES = packhex.c
     83unhex_SOURCES = unhex.c
     84
     85bin_SCRIPTS =  install-if-change lock-directory unlock-directory rcs-clean
     86
     87
     88noinst_SCRIPTS = search-id.sh
    8089ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    8190mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
    82 CONFIG_HEADER = ./src/config.h
    83 CONFIG_CLEAN_FILES =
    84 DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
     91CONFIG_HEADER = config.h
     92CONFIG_CLEAN_FILES =  install-if-change lock-directory rcs-clean \
     93unlock-directory
     94bin_PROGRAMS =  cklength$(EXEEXT) eolstrip$(EXEEXT) packhex$(EXEEXT) \
     95unhex$(EXEEXT)
     96PROGRAMS =  $(bin_PROGRAMS)
     97
     98
     99DEFS = @DEFS@ -I. -I$(srcdir) -I.
     100CPPFLAGS = @CPPFLAGS@
     101LDFLAGS = @LDFLAGS@
     102LIBS = @LIBS@
     103cklength_OBJECTS =  cklength.o
     104cklength_LDADD = $(LDADD)
     105cklength_DEPENDENCIES =
     106cklength_LDFLAGS =
     107eolstrip_OBJECTS =  eolstrip.o
     108eolstrip_LDADD = $(LDADD)
     109eolstrip_DEPENDENCIES =
     110eolstrip_LDFLAGS =
     111packhex_OBJECTS =  packhex.o
     112packhex_LDADD = $(LDADD)
     113packhex_DEPENDENCIES =
     114packhex_LDFLAGS =
     115unhex_OBJECTS =  unhex.o
     116unhex_LDADD = $(LDADD)
     117unhex_DEPENDENCIES =
     118unhex_LDFLAGS =
     119SCRIPTS =  $(bin_SCRIPTS) $(noinst_SCRIPTS)
     120
     121CFLAGS = @CFLAGS@
     122COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     123CCLD = $(CC)
     124LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
     125DIST_COMMON =  README ./stamp-h.in Makefile.am Makefile.in aclocal.m4 \
     126config.h.in configure configure.in install-if-change.in \
     127lock-directory.in rcs-clean.in unlock-directory.in
    85128
    86129
     
    89132TAR = tar
    90133GZIP_ENV = --best
     134DEP_FILES =  .deps/cklength.P .deps/eolstrip.P .deps/packhex.P \
     135.deps/unhex.P
     136SOURCES = $(cklength_SOURCES) $(eolstrip_SOURCES) $(packhex_SOURCES) $(unhex_SOURCES)
     137OBJECTS = $(cklength_OBJECTS) $(eolstrip_OBJECTS) $(packhex_OBJECTS) $(unhex_OBJECTS)
     138
    91139all: all-redirect
    92140.SUFFIXES:
    93 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../automake/subdirs.am $(top_srcdir)/../../automake/local.am
     141.SUFFIXES: .S .c .o .s
     142$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../automake/local.am
    94143        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
    95144
     
    106155        cd $(srcdir) && $(AUTOCONF)
    107156
    108 # This directory's subdirectories are mostly independent; you can cd
    109 # into them and run `make' without going through this Makefile.
    110 # To change the values of `make' variables: instead of editing Makefiles,
    111 # (1) if the variable is set in `config.status', edit `config.status'
    112 #     (which will cause the Makefiles to be regenerated when you run `make');
    113 # (2) otherwise, pass the desired values on the `make' command line.
    114 
    115 @SET_MAKE@
    116 
    117 all-recursive install-data-recursive install-exec-recursive \
    118 installdirs-recursive install-recursive uninstall-recursive  \
    119 check-recursive installcheck-recursive info-recursive dvi-recursive:
    120         @set fnord $(MAKEFLAGS); amf=$$2; \
    121         dot_seen=no; \
    122         target=`echo $@ | sed s/-recursive//`; \
    123         list='$(SUBDIRS)'; for subdir in $$list; do \
    124           echo "Making $$target in $$subdir"; \
    125           if test "$$subdir" = "."; then \
    126             dot_seen=yes; \
    127             local_target="$$target-am"; \
    128           else \
    129             local_target="$$target"; \
    130           fi; \
    131           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
    132            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
    133         done; \
    134         if test "$$dot_seen" = "no"; then \
    135           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
    136         fi; test -z "$$fail"
    137 
    138 mostlyclean-recursive clean-recursive distclean-recursive \
    139 maintainer-clean-recursive:
    140         @set fnord $(MAKEFLAGS); amf=$$2; \
    141         dot_seen=no; \
    142         rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
    143           rev="$$subdir $$rev"; \
    144           test "$$subdir" = "." && dot_seen=yes; \
    145         done; \
    146         test "$$dot_seen" = "no" && rev=". $$rev"; \
    147         target=`echo $@ | sed s/-recursive//`; \
    148         for subdir in $$rev; do \
    149           echo "Making $$target in $$subdir"; \
    150           if test "$$subdir" = "."; then \
    151             local_target="$$target-am"; \
    152           else \
    153             local_target="$$target"; \
    154           fi; \
    155           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
    156            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
    157         done && test -z "$$fail"
    158 tags-recursive:
    159         list='$(SUBDIRS)'; for subdir in $$list; do \
    160           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
     157config.h: stamp-h
     158        @if test ! -f $@; then \
     159                rm -f stamp-h; \
     160                $(MAKE) stamp-h; \
     161        else :; fi
     162stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
     163        cd $(top_builddir) \
     164          && CONFIG_FILES= CONFIG_HEADERS=config.h \
     165             $(SHELL) ./config.status
     166        @echo timestamp > stamp-h 2> /dev/null
     167$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
     168        @if test ! -f $@; then \
     169                rm -f $(srcdir)/stamp-h.in; \
     170                $(MAKE) $(srcdir)/stamp-h.in; \
     171        else :; fi
     172$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
     173        cd $(top_srcdir) && $(AUTOHEADER)
     174        @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
     175
     176mostlyclean-hdr:
     177
     178clean-hdr:
     179
     180distclean-hdr:
     181        -rm -f config.h
     182
     183maintainer-clean-hdr:
     184install-if-change: $(top_builddir)/config.status install-if-change.in
     185        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     186lock-directory: $(top_builddir)/config.status lock-directory.in
     187        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     188rcs-clean: $(top_builddir)/config.status rcs-clean.in
     189        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     190unlock-directory: $(top_builddir)/config.status unlock-directory.in
     191        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     192
     193mostlyclean-binPROGRAMS:
     194
     195clean-binPROGRAMS:
     196        -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
     197
     198distclean-binPROGRAMS:
     199
     200maintainer-clean-binPROGRAMS:
     201
     202install-binPROGRAMS: $(bin_PROGRAMS)
     203        @$(NORMAL_INSTALL)
     204        $(mkinstalldirs) $(DESTDIR)$(bindir)
     205        @list='$(bin_PROGRAMS)'; for p in $$list; do \
     206          if test -f $$p; then \
     207            echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
     208             $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
     209          else :; fi; \
     210        done
     211
     212uninstall-binPROGRAMS:
     213        @$(NORMAL_UNINSTALL)
     214        list='$(bin_PROGRAMS)'; for p in $$list; do \
     215          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
     216        done
     217
     218.s.o:
     219        $(COMPILE) -c $<
     220
     221.S.o:
     222        $(COMPILE) -c $<
     223
     224mostlyclean-compile:
     225        -rm -f *.o core *.core
     226
     227clean-compile:
     228
     229distclean-compile:
     230        -rm -f *.tab.c
     231
     232maintainer-clean-compile:
     233
     234cklength$(EXEEXT): $(cklength_OBJECTS) $(cklength_DEPENDENCIES)
     235        @rm -f cklength$(EXEEXT)
     236        $(LINK) $(cklength_LDFLAGS) $(cklength_OBJECTS) $(cklength_LDADD) $(LIBS)
     237
     238eolstrip$(EXEEXT): $(eolstrip_OBJECTS) $(eolstrip_DEPENDENCIES)
     239        @rm -f eolstrip$(EXEEXT)
     240        $(LINK) $(eolstrip_LDFLAGS) $(eolstrip_OBJECTS) $(eolstrip_LDADD) $(LIBS)
     241
     242packhex$(EXEEXT): $(packhex_OBJECTS) $(packhex_DEPENDENCIES)
     243        @rm -f packhex$(EXEEXT)
     244        $(LINK) $(packhex_LDFLAGS) $(packhex_OBJECTS) $(packhex_LDADD) $(LIBS)
     245
     246unhex$(EXEEXT): $(unhex_OBJECTS) $(unhex_DEPENDENCIES)
     247        @rm -f unhex$(EXEEXT)
     248        $(LINK) $(unhex_LDFLAGS) $(unhex_OBJECTS) $(unhex_LDADD) $(LIBS)
     249
     250install-binSCRIPTS: $(bin_SCRIPTS)
     251        @$(NORMAL_INSTALL)
     252        $(mkinstalldirs) $(DESTDIR)$(bindir)
     253        @list='$(bin_SCRIPTS)'; for p in $$list; do \
     254          if test -f $$p; then \
     255            echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
     256            $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     257          else if test -f $(srcdir)/$$p; then \
     258            echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
     259            $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     260          else :; fi; fi; \
     261        done
     262
     263uninstall-binSCRIPTS:
     264        @$(NORMAL_UNINSTALL)
     265        list='$(bin_SCRIPTS)'; for p in $$list; do \
     266          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
    161267        done
    162268
     
    171277          && mkid -f$$here/ID $$unique $(LISP)
    172278
    173 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
     279TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
    174280        tags=; \
    175281        here=`pwd`; \
    176         list='$(SUBDIRS)'; for subdir in $$list; do \
    177    if test "$$subdir" = .; then :; else \
    178             test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
    179    fi; \
    180         done; \
    181282        list='$(SOURCES) $(HEADERS)'; \
    182283        unique=`for i in $$list; do echo $$i; done | \
    183284          awk '    { files[$$0] = 1; } \
    184285               END { for (i in files) print i; }'`; \
    185         test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
    186           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
     286        test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
     287          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
    187288
    188289mostlyclean-tags:
     
    248349          fi; \
    249350        done
    250         for subdir in $(SUBDIRS); do \
    251           if test "$$subdir" = .; then :; else \
    252             test -d $(distdir)/$$subdir \
    253             || mkdir $(distdir)/$$subdir \
    254             || exit 1; \
    255             chmod 777 $(distdir)/$$subdir; \
    256             (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
    257               || exit 1; \
    258           fi; \
    259         done
     351
     352DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
     353
     354-include $(DEP_FILES)
     355
     356mostlyclean-depend:
     357
     358clean-depend:
     359
     360distclean-depend:
     361        -rm -rf .deps
     362
     363maintainer-clean-depend:
     364
     365%.o: %.c
     366        @echo '$(COMPILE) -c $<'; \
     367        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     368        @-cp .deps/$(*F).pp .deps/$(*F).P; \
     369        tr ' ' '\012' < .deps/$(*F).pp \
     370          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     371            >> .deps/$(*F).P; \
     372        rm .deps/$(*F).pp
     373
     374%.lo: %.c
     375        @echo '$(LTCOMPILE) -c $<'; \
     376        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     377        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
     378          < .deps/$(*F).pp > .deps/$(*F).P; \
     379        tr ' ' '\012' < .deps/$(*F).pp \
     380          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     381            >> .deps/$(*F).P; \
     382        rm -f .deps/$(*F).pp
    260383info-am:
    261 info: info-recursive
     384info: info-am
    262385dvi-am:
    263 dvi: dvi-recursive
     386dvi: dvi-am
    264387check-am: all-am
    265 check: check-recursive
     388check: check-am
    266389installcheck-am:
    267 installcheck: installcheck-recursive
    268 install-exec-am:
    269 install-exec: install-exec-recursive
     390installcheck: installcheck-am
     391all-recursive-am: config.h
     392        $(MAKE) $(AM_MAKEFLAGS) all-recursive
     393
     394install-exec-am: install-binPROGRAMS install-binSCRIPTS \
     395                install-exec-local
     396install-exec: install-exec-am
    270397
    271398install-data-am:
    272 install-data: install-data-recursive
     399install-data: install-data-am
    273400
    274401install-am: all-am
    275402        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
    276 install: install-recursive
    277 uninstall-am:
    278 uninstall: uninstall-recursive
    279 all-am: Makefile
    280 all-redirect: all-recursive
     403install: install-am
     404uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS
     405uninstall: uninstall-am
     406all-am: Makefile $(PROGRAMS) $(SCRIPTS) config.h
     407all-redirect: all-am
    281408install-strip:
    282409        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
    283 installdirs: installdirs-recursive
    284 installdirs-am:
     410installdirs:
     411        $(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(bindir)
    285412
    286413
     
    294421
    295422maintainer-clean-generic:
    296 mostlyclean-am:  mostlyclean-tags mostlyclean-generic
    297 
    298 mostlyclean: mostlyclean-recursive
    299 
    300 clean-am:  clean-tags clean-generic mostlyclean-am
    301 
    302 clean: clean-recursive
    303 
    304 distclean-am:  distclean-tags distclean-generic clean-am
    305 
    306 distclean: distclean-recursive
     423mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
     424                mostlyclean-compile mostlyclean-tags mostlyclean-depend \
     425                mostlyclean-generic
     426
     427mostlyclean: mostlyclean-am
     428
     429clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-tags \
     430                clean-depend clean-generic mostlyclean-am
     431
     432clean: clean-am
     433
     434distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile \
     435                distclean-tags distclean-depend distclean-generic \
     436                clean-am
     437
     438distclean: distclean-am
    307439        -rm -f config.status
    308440
    309 maintainer-clean-am:  maintainer-clean-tags maintainer-clean-generic \
     441maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
     442                maintainer-clean-compile maintainer-clean-tags \
     443                maintainer-clean-depend maintainer-clean-generic \
    310444                distclean-am
    311445        @echo "This command is intended for maintainers to use;"
    312446        @echo "it deletes files that may require special tools to rebuild."
    313447
    314 maintainer-clean: maintainer-clean-recursive
     448maintainer-clean: maintainer-clean-am
    315449        -rm -f config.status
    316450
    317 .PHONY: install-data-recursive uninstall-data-recursive \
    318 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
    319 uninstalldirs-recursive all-recursive check-recursive \
    320 installcheck-recursive info-recursive dvi-recursive \
    321 mostlyclean-recursive distclean-recursive clean-recursive \
    322 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
    323 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
    324 dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
    325 install-exec install-data-am install-data install-am install \
    326 uninstall-am uninstall all-redirect all-am all installdirs-am \
    327 installdirs mostlyclean-generic distclean-generic clean-generic \
     451.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
     452mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
     453maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
     454mostlyclean-compile distclean-compile clean-compile \
     455maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS tags \
     456mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
     457distdir mostlyclean-depend distclean-depend clean-depend \
     458maintainer-clean-depend info-am info dvi-am dvi check check-am \
     459installcheck-am installcheck all-recursive-am install-exec-local \
     460install-exec-am install-exec install-data-am install-data install-am \
     461install uninstall-am uninstall all-redirect all-am all installdirs \
     462mostlyclean-generic distclean-generic clean-generic \
    328463maintainer-clean-generic clean mostlyclean distclean maintainer-clean
    329464
    330465
    331 preinstall-recursive \
    332 debug-recursive debug_install-recursive \
    333 profile-recursive profile_install-recursive:
    334         @set fnord $(MAKEFLAGS); amf=$$2; \
    335         dot_seen=no; \
    336         target=`echo $@ | sed s/-recursive//`; \
    337         list='$(SUBDIRS)'; for subdir in $$list; do \
    338           echo "Making $$target in $$subdir"; \
    339           if test "$$subdir" = "."; then \
    340             dot_seen=yes; \
    341             local_target="$$target-am"; \
    342           else \
    343             local_target="$$target"; \
    344           fi; \
    345           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
    346            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
    347         done; \
    348         if test "$$dot_seen" = "no"; then \
    349           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
    350         fi; test -z "$$fail"
    351 
    352 debug: debug-recursive
    353 
    354 debug_install: debug_install-recursive
    355 
    356 profile: profile-recursive
    357 
    358 profile_install: profile_install-recursive
    359 
    360 preinstall: preinstall-recursive
    361 
    362 .PHONY: \
    363 debug debug-recursive \
    364 debug_install \
    365 profile profile-recursive \
    366 profile_install \
    367 preinstall preinstall-recursive
     466#
     467# HACK: Install to build directory
     468#
     469install-exec-local: $(bin_PROGRAMS) $(bin_SCRIPTS)
     470        if test -n "${RTEMS_BSP}"; then \
     471          $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     472          $(INSTALL_SCRIPT) $(bin_SCRIPTS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     473          $(INSTALL_PROGRAM) $(bin_PROGRAMS) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools; \
     474        fi
     475
     476preinstall: install-exec-local
    368477
    369478debug-am:
  • tools/build/configure

    r183fa829 rb6529a3  
    454454# A filename unique to this package, relative to the directory that
    455455# configure is in, which we can look for to find out if srcdir is correct.
    456 ac_unique_file=scripts
     456ac_unique_file=README
    457457
    458458# Find the source files, if location was not specified.
     
    13581358
    13591359trap 'rm -fr `echo "Makefile
    1360 src/Makefile
    1361 scripts/Makefile
    1362 scripts/install-if-change
    1363 scripts/lock-directory
    1364 scripts/rcs-clean
    1365 scripts/unlock-directory
    1366  src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     1360install-if-change
     1361lock-directory
     1362rcs-clean
     1363unlock-directory
     1364 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    13671365EOF
    13681366cat >> $CONFIG_STATUS <<EOF
     
    14601458
    14611459CONFIG_FILES=\${CONFIG_FILES-"Makefile
    1462 src/Makefile
    1463 scripts/Makefile
    1464 scripts/install-if-change
    1465 scripts/lock-directory
    1466 scripts/rcs-clean
    1467 scripts/unlock-directory
     1460install-if-change
     1461lock-directory
     1462rcs-clean
     1463unlock-directory
    14681464"}
    14691465EOF
     
    15471543EOF
    15481544cat >> $CONFIG_STATUS <<EOF
    1549   CONFIG_HEADERS="src/config.h"
     1545  CONFIG_HEADERS="config.h"
    15501546EOF
    15511547cat >> $CONFIG_STATUS <<\EOF
     
    16381634EOF
    16391635cat >> $CONFIG_STATUS <<\EOF
    1640 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
     1636test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    16411637
    16421638exit 0
  • tools/build/configure.in

    r183fa829 rb6529a3  
    44
    55AC_PREREQ(2.13)
    6 AC_INIT(scripts)
     6AC_INIT(README)
    77AC_CONFIG_AUX_DIR(../..)
    88RTEMS_TOP(../..)
     
    1818RTEMS_PATH_KSH
    1919
    20 AM_CONFIG_HEADER(src/config.h)
     20AM_CONFIG_HEADER(config.h)
    2121
    2222AC_OUTPUT(
    2323Makefile
    24 src/Makefile
    25 scripts/Makefile
    26 scripts/install-if-change
    27 scripts/lock-directory
    28 scripts/rcs-clean
    29 scripts/unlock-directory
     24install-if-change
     25lock-directory
     26rcs-clean
     27unlock-directory
    3028)
Note: See TracChangeset for help on using the changeset viewer.