| 1 | # |
| 2 | # Makefile for directory with subdirs to build. |
| 3 | # Copyright (C) 1990-1993 Free Software Foundation |
| 4 | # |
| 5 | # This file is free software; you can redistribute it and/or modify |
| 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation; either version 2 of the License, or |
| 8 | # (at your option) any later version. |
| 9 | # |
| 10 | # This program is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with this program; if not, write to the Free Software |
| 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 18 | # |
| 19 | |
| 20 | srcdir = . |
| 21 | |
| 22 | prefix = /usr/local |
| 23 | |
| 24 | exec_prefix = $(prefix) |
| 25 | bindir = $(exec_prefix)/bin |
| 26 | libdir = $(exec_prefix)/lib |
| 27 | tooldir = $(libdir) |
| 28 | |
| 29 | program_transform_name = |
| 30 | |
| 31 | datadir = $(prefix)/lib |
| 32 | mandir = $(prefix)/man |
| 33 | man1dir = $(mandir)/man1 |
| 34 | man2dir = $(mandir)/man2 |
| 35 | man3dir = $(mandir)/man3 |
| 36 | man4dir = $(mandir)/man4 |
| 37 | man5dir = $(mandir)/man5 |
| 38 | man6dir = $(mandir)/man6 |
| 39 | man7dir = $(mandir)/man7 |
| 40 | man8dir = $(mandir)/man8 |
| 41 | man9dir = $(mandir)/man9 |
| 42 | infodir = $(prefix)/info |
| 43 | includedir = $(prefix)/include |
| 44 | docdir = $(datadir)/doc |
| 45 | |
| 46 | SHELL = /bin/sh |
| 47 | |
| 48 | INSTALL = cp |
| 49 | INSTALL_PROGRAM = $(INSTALL) |
| 50 | INSTALL_DATA = $(INSTALL) |
| 51 | |
| 52 | AS = as |
| 53 | AR = ar |
| 54 | AR_FLAGS = rc |
| 55 | CC = cc |
| 56 | CFLAGS = -g |
| 57 | $(start-sanitize-chill) |
| 58 | CHILLFLAGS = $(CFLAGS) |
| 59 | CHILL_LIB = -lchill |
| 60 | $(end-sanitize-chill) |
| 61 | CXX = gcc |
| 62 | CXXFLAGS = -g -O |
| 63 | RANLIB = ranlib |
| 64 | NM = nm |
| 65 | GZIP = gzip |
| 66 | |
| 67 | BISON = `if [ -f $${rootme}/byacc/byacc ] ; \ |
| 68 | then echo $${rootme}/byacc/byacc ; \ |
| 69 | else echo byacc ; \ |
| 70 | fi` |
| 71 | |
| 72 | LEX = `if [ -f $${rootme}/flex/flex ] ; \ |
| 73 | then echo $${rootme}/flex/flex ; \ |
| 74 | else echo flex ; fi` |
| 75 | |
| 76 | MAKEINFO = `if [ -f $${rootme}/texinfo/makeinfo/makeinfo ] ; \ |
| 77 | then echo $${rootme}/texinfo/makeinfo/makeinfo ; \ |
| 78 | else echo makeinfo ; fi` |
| 79 | |
| 80 | |
| 81 | # libraries that may need to be augmented on a system-by-system basis |
| 82 | X11_LIB = -lX11 |
| 83 | |
| 84 | # compilers to use to create programs which must be run in the build |
| 85 | # environment. |
| 86 | CC_FOR_BUILD = $(CC) |
| 87 | CXX_FOR_BUILD = $(CXX) |
| 88 | |
| 89 | SUBDIRS = "this is set via configure, don't edit this" |
| 90 | OTHERS = |
| 91 | |
| 92 | ALL = all.normal |
| 93 | INSTALL_TARGET = install.all |
| 94 | |
| 95 | ### for debugging |
| 96 | #GCCVERBOSE=-v |
| 97 | |
| 98 | CC_FOR_TARGET = ` \ |
| 99 | if [ -f $${rootme}/gcc/Makefile ] ; then \ |
| 100 | echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \ |
| 101 | else \ |
| 102 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
| 103 | echo $(CC); \ |
| 104 | else \ |
| 105 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ |
| 106 | fi; \ |
| 107 | fi` |
| 108 | |
| 109 | $(start-sanitize-chill) |
| 110 | CHILL_FOR_TARGET = ` \ |
| 111 | if [ -f $${rootme}/gcc/Makefile ] ; then \ |
| 112 | echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/ -L$${rootme}/chillrt/; \ |
| 113 | else \ |
| 114 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
| 115 | echo $(CC); \ |
| 116 | else \ |
| 117 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ |
| 118 | fi; \ |
| 119 | fi` |
| 120 | $(end-sanitize-chill) |
| 121 | |
| 122 | CXX_FOR_TARGET = ` \ |
| 123 | if [ -f $${rootme}/gcc/Makefile ] ; then \ |
| 124 | echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \ |
| 125 | else \ |
| 126 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
| 127 | echo $(CXX); \ |
| 128 | else \ |
| 129 | t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ |
| 130 | fi; \ |
| 131 | fi` |
| 132 | |
| 133 | AS_FOR_TARGET = ` \ |
| 134 | if [ -f $${rootme}/gas/Makefile ] ; then \ |
| 135 | echo $${rootme}/gas/as.new ; \ |
| 136 | else \ |
| 137 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
| 138 | echo $(AS); \ |
| 139 | else \ |
| 140 | t='$(program_transform_name)'; echo as | sed -e '' $$t ; \ |
| 141 | fi; \ |
| 142 | fi` |
| 143 | |
| 144 | AR_FOR_TARGET = ` \ |
| 145 | if [ -f $${rootme}/binutils/Makefile ] ; then \ |
| 146 | echo $${rootme}/binutils/ar ; \ |
| 147 | else \ |
| 148 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
| 149 | echo $(AR); \ |
| 150 | else \ |
| 151 | t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \ |
| 152 | fi; \ |
| 153 | fi` |
| 154 | |
| 155 | RANLIB_FOR_TARGET = ` \ |
| 156 | if [ -f $${rootme}/binutils/Makefile ] ; then \ |
| 157 | echo $${rootme}/binutils/ranlib ; \ |
| 158 | else \ |
| 159 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
| 160 | echo $(RANLIB); \ |
| 161 | else \ |
| 162 | t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \ |
| 163 | fi; \ |
| 164 | fi` |
| 165 | |
| 166 | NM_FOR_TARGET = ` \ |
| 167 | if [ -f $${rootme}/binutils/Makefile ] ; then \ |
| 168 | echo $${rootme}/binutils/nm ; \ |
| 169 | else \ |
| 170 | if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ |
| 171 | echo $(NM); \ |
| 172 | else \ |
| 173 | t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \ |
| 174 | fi; \ |
| 175 | fi` |
| 176 | |
| 177 | # FIXME: This is badly named. |
| 178 | XTRAFLAGS = ` \ |
| 179 | if [ -f $${rootme}/gcc/Makefile ] ; then \ |
| 180 | if [ -f $${rootme}/newlib/Makefile ] ; then \ |
| 181 | echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \ |
| 182 | else \ |
| 183 | echo -I$${rootme}/gcc/include ; \ |
| 184 | fi ; \ |
| 185 | else \ |
| 186 | echo ; \ |
| 187 | fi` |
| 188 | |
| 189 | PRMS = all-prms |
| 190 | |
| 191 | #### host and target specific makefile fragments come in here. |
| 192 | ### |
| 193 | |
| 194 | # Flags to pass down to all sub-makes. |
| 195 | # Please keep these in alphabetical order. |
| 196 | BASE_FLAGS_TO_PASS = \ |
| 197 | "AR_FLAGS=$(AR_FLAGS)" \ |
| 198 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ |
| 199 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ |
| 200 | "BISON=$(BISON)" \ |
| 201 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
| 202 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ |
| 203 | "CFLAGS=$(CFLAGS)" \ |
| 204 | $(start-sanitize-chill)\ |
| 205 | "CHILLFLAGS=$(CHILLFLAGS)" \ |
| 206 | "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \ |
| 207 | "CHILL_LIB=$(CHILL_LIB)" \ |
| 208 | $(end-sanitize-chill)\ |
| 209 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
| 210 | "CXXFLAGS=$(CXXFLAGS)" \ |
| 211 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ |
| 212 | 'GCC_FOR_TARGET=$$(CC_FOR_TARGET)' \ |
| 213 | "INSTALL=$(INSTALL)" \ |
| 214 | "INSTALL_DATA=$(INSTALL_DATA)" \ |
| 215 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ |
| 216 | "LDFLAGS=$(LDFLAGS)" \ |
| 217 | "LEX=$(LEX)" \ |
| 218 | "LOADLIBES=$(LOADLIBES)" \ |
| 219 | "MAKEINFO=$(MAKEINFO)" \ |
| 220 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ |
| 221 | "PRMS=$(PRMS)" \ |
| 222 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ |
| 223 | "XTRAFLAGS_FOR_TARGET=$(XTRAFLAGS)" \ |
| 224 | "exec_prefix=$(exec_prefix)" \ |
| 225 | "prefix=$(prefix)" \ |
| 226 | "tooldir=$(tooldir)" |
| 227 | |
| 228 | # Flags to pass down to most sub-makes, in which we're building with |
| 229 | # the host environment. |
| 230 | # If any variables are added here, they must be added to do-*, below. |
| 231 | EXTRA_HOST_FLAGS = \ |
| 232 | 'AR=$(AR)' \ |
| 233 | 'AS=$(AS)' \ |
| 234 | 'CC=$(CC)' \ |
| 235 | 'CXX=$(CXX)' \ |
| 236 | 'NM=$(NM)' \ |
| 237 | 'RANLIB=$(RANLIB)' \ |
| 238 | 'XTRAFLAGS=' |
| 239 | |
| 240 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) |
| 241 | |
| 242 | # Flags that are concerned with the location of the X11 include files |
| 243 | # and library files |
| 244 | X11_FLAGS_TO_PASS = \ |
| 245 | "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \ |
| 246 | "X11_LIB_FLAGS=$(X11_LIB_FLAGS)" \ |
| 247 | "X11_LIB=$(X11_LIB)" |
| 248 | |
| 249 | # Shell case of subdirectories which are built with the target environment. |
| 250 | TARGET_LIBS=libg++ | xiberty | newlib |
| 251 | $(start-sanitize-chill) |
| 252 | TARGET_LIBS=libg++ | xiberty | newlib | chillrt |
| 253 | $(end-sanitize-chill) |
| 254 | |
| 255 | # Flags to pass down to makes which are built with the target environment. |
| 256 | # The double $ decreases the length of the command line; the variables |
| 257 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. |
| 258 | # If any variables are added here, they must be added to do-*, below. |
| 259 | EXTRA_TARGET_FLAGS = \ |
| 260 | 'AR=$$(AR_FOR_TARGET)' \ |
| 261 | 'AS=$$(AS_FOR_TARGET)' \ |
| 262 | 'CC=$$(CC_FOR_TARGET)' \ |
| 263 | 'CXX=$$(CXX_FOR_TARGET)' \ |
| 264 | 'NM=$$(NM_FOR_TARGET)' \ |
| 265 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
| 266 | 'XTRAFLAGS=$$(XTRAFLAGS_FOR_TARGET)' |
| 267 | |
| 268 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) |
| 269 | |
| 270 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it |
| 271 | # unfortunately needs the native compiler and the target ar and |
| 272 | # ranlib. |
| 273 | # If any variables are added here, they must be added to do-*, below. |
| 274 | EXTRA_GCC_FLAGS = \ |
| 275 | 'AR=$$(AR_FOR_TARGET)' \ |
| 276 | 'AS=$(AS)' \ |
| 277 | 'CC=$(CC)' \ |
| 278 | 'CXX=$(CXX)' \ |
| 279 | 'NM=$(NM)' \ |
| 280 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
| 281 | 'XTRAFLAGS=' |
| 282 | |
| 283 | # On SCO 3.2v4, the gcc build can fill the environment. Resetting |
| 284 | # some variables solves the problem. |
| 285 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) \ |
| 286 | $(EXTRA_GCC_FLAGS) \ |
| 287 | $(start-sanitize-chill)\ |
| 288 | "CHILLFLAGS=" \ |
| 289 | "CHILL_FOR_TARGET=" \ |
| 290 | "CHILL_LIB=" \ |
| 291 | $(end-sanitize-chill)\ |
| 292 | "CXX_FOR_TARGET=" \ |
| 293 | "XTRAFLAGS_FOR_TARGET=" |
| 294 | |
| 295 | # The first rule in the file had better be this one. Don't put any above it. |
| 296 | all: $(ALL) |
| 297 | |
| 298 | .PHONY: all check dvi info install-info install-info-dirs |
| 299 | .PHONY: do-info do-check do-dvi do-install-info |
| 300 | .PHONY: do-clean do-mostlyclean do-distclean do-realclean |
| 301 | .NOEXPORT: |
| 302 | MAKEOVERRIDES= |
| 303 | |
| 304 | # Do a target for all the subdirectories. A ``make do-X'' will do a |
| 305 | # ``make X'' in all subdirectories (because, in general, there is a |
| 306 | # dependency (below) of X upon do-X, a ``make X'' will also do this, |
| 307 | # but it may do additional work as well). |
| 308 | # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, |
| 309 | # because it is so large that it can easily overflow the command line |
| 310 | # length limit on some systems. |
| 311 | do-info do-check do-dvi do-install-info do-clean do-mostlyclean do-distclean do-realclean: |
| 312 | @target=`echo $@ | sed -e 's/^do-//'`; \ |
| 313 | rootme=`pwd`; export rootme; \ |
| 314 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ |
| 315 | for i in $(SUBDIRS); do \ |
| 316 | if [ -f ./$$i/Makefile ]; then \ |
| 317 | case $$i in \ |
| 318 | $(TARGET_LIBS) ) \ |
| 319 | for flag in $(EXTRA_TARGET_FLAGS); do \ |
| 320 | eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \ |
| 321 | done; \ |
| 322 | ;; \ |
| 323 | gcc) \ |
| 324 | for flag in $(EXTRA_GCC_FLAGS); do \ |
| 325 | eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \ |
| 326 | done; \ |
| 327 | ;; \ |
| 328 | *) \ |
| 329 | for flag in $(EXTRA_HOST_FLAGS); do \ |
| 330 | eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \ |
| 331 | done; \ |
| 332 | ;; \ |
| 333 | esac ; \ |
| 334 | export AR AS CC CXX NM RANLIB XTRAFLAGS; \ |
| 335 | if (cd ./$$i; \ |
| 336 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
| 337 | "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \ |
| 338 | "RANLIB=$${RANLIB}" "XTRAFLAGS=$${XTRAFLAGS}" \ |
| 339 | $${target}); \ |
| 340 | then true; else exit 1; fi; \ |
| 341 | else true; fi; \ |
| 342 | done |
| 343 | |
| 344 | info: do-info |
| 345 | check: do-check |
| 346 | dvi: do-dvi |
| 347 | |
| 348 | install-info: install-info-dirs do-install-info dir.info |
| 349 | if [ -f dir.info ] ; then \ |
| 350 | $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \ |
| 351 | else true ; fi |
| 352 | |
| 353 | do-install-info: install-info-dirs |
| 354 | |
| 355 | all.normal: all-m4 all-autoconf all-libiberty all-mmalloc all-texinfo \ |
| 356 | all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \ |
| 357 | all-gcc all-binutils all-libg++ all-readline all-sim all-gdb \ |
| 358 | all-make all-rcs all-cvs all-diff all-grep \ |
| 359 | all-patch all-emacs all-ispell all-etc \ |
| 360 | all-tcl all-tk all-expect \ |
| 361 | all-newlib \ |
| 362 | $(start-sanitize-chill) \ |
| 363 | all-chillrt \ |
| 364 | $(end-sanitize-chill) \ |
| 365 | all-gprof all-prms all-send-pr all-libm all-deja-gnu \ |
| 366 | all-fileutils all-find all-gawk all-sed all-shellutils \ |
| 367 | all-textutils all-time all-wdiff all-uudecode \ |
| 368 | all-hello all-tar all-gzip all-indent all-recode |
| 369 | |
| 370 | |
| 371 | all.cross: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \ |
| 372 | all-opcodes all-bfd all-readline all-sim \ |
| 373 | all-gdb all-binutils all-gcc all-newlib \ |
| 374 | $(start-sanitize-chill) \ |
| 375 | all-chillrt \ |
| 376 | $(end-sanitize-chill) \ |
| 377 | all-deja-gnu |
| 378 | |
| 379 | .PHONY: clean distclean mostlyclean realclean local-clean local-distclean |
| 380 | |
| 381 | local-clean: |
| 382 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E |
| 383 | |
| 384 | local-distclean: |
| 385 | -rm -f Makefile config.status |
| 386 | |
| 387 | clean: do-clean local-clean |
| 388 | mostlyclean: do-mostlyclean local-clean |
| 389 | distclean: do-distclean local-clean local-distclean |
| 390 | realclean: do-realclean local-clean local-distclean |
| 391 | |
| 392 | uninstall: |
| 393 | @echo "the uninstall target is not supported in this tree" |
| 394 | |
| 395 | install: $(INSTALL_TARGET) |
| 396 | -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \ |
| 397 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi |
| 398 | -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi |
| 399 | |
| 400 | install.all: install-no-fixedincludes |
| 401 | @if [ -f ./gcc/Makefile ] ; then \ |
| 402 | rootme=`pwd` ; export rootme ; \ |
| 403 | (cd ./gcc; \ |
| 404 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ |
| 405 | else \ |
| 406 | true ; \ |
| 407 | fi |
| 408 | |
| 409 | install-no-fixedincludes: install-dirs gcc-no-fixedincludes \ |
| 410 | install-autoconf \ |
| 411 | install-bfd \ |
| 412 | install-binutils \ |
| 413 | install-byacc \ |
| 414 | $(start-sanitize-chill) \ |
| 415 | install-chillrt \ |
| 416 | $(end-sanitize-chill) \ |
| 417 | install-cvs \ |
| 418 | install-deja-gnu \ |
| 419 | install-diff \ |
| 420 | install-emacs \ |
| 421 | install-etc \ |
| 422 | install-expect \ |
| 423 | install-fileutils \ |
| 424 | install-find \ |
| 425 | install-flex \ |
| 426 | install-gas \ |
| 427 | install-gawk \ |
| 428 | install-gdb \ |
| 429 | install-glob \ |
| 430 | install-gprof \ |
| 431 | install-grep \ |
| 432 | install-gzip \ |
| 433 | install-hello \ |
| 434 | install-indent \ |
| 435 | install-ispell \ |
| 436 | install-ld \ |
| 437 | install-libg++ \ |
| 438 | install-libiberty \ |
| 439 | install-libm \ |
| 440 | install-m4 \ |
| 441 | install-make \ |
| 442 | install-mmalloc \ |
| 443 | install-newlib \ |
| 444 | install-opcodes \ |
| 445 | install-patch \ |
| 446 | install-prms \ |
| 447 | install-rcs \ |
| 448 | install-readline \ |
| 449 | install-recode \ |
| 450 | install-sed \ |
| 451 | install-send-pr \ |
| 452 | install-shellutils \ |
| 453 | install-sim \ |
| 454 | install-tar \ |
| 455 | install-tcl \ |
| 456 | install-texinfo \ |
| 457 | install-textutils \ |
| 458 | install-time \ |
| 459 | install-tk \ |
| 460 | install-uudecode \ |
| 461 | install-wdiff |
| 462 | |
| 463 | # |
| 464 | # Install the gcc headers files, but not the fixed include files, |
| 465 | # which we are not allowed to distribute. This rule is very dependent |
| 466 | # on the workings of the gcc Makefile.in. |
| 467 | # |
| 468 | gcc-no-fixedincludes: |
| 469 | @if [ -f ./gcc/Makefile ]; then \ |
| 470 | rm -rf gcc/tmp-include; \ |
| 471 | mv gcc/include gcc/tmp-include 2>/dev/null; \ |
| 472 | mkdir gcc/include; \ |
| 473 | touch gcc/stmp-fixincludes; \ |
| 474 | rm -f gcc/stmp-headers; \ |
| 475 | rootme=`pwd`; export rootme; \ |
| 476 | srcroot=`cd $(srcdir); pwd` ; export srcroot; \ |
| 477 | (cd ./gcc; \ |
| 478 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
| 479 | rm -rf gcc/include; \ |
| 480 | mv gcc/tmp-include gcc/include 2>/dev/null; \ |
| 481 | else true; fi |
| 482 | |
| 483 | install.cross: install-dirs install-libiberty install-mmalloc \ |
| 484 | install-binutils install-opcodes install-byacc install-flex \ |
| 485 | install-ld install-gas install-readline \ |
| 486 | install-glob install-gdb install-mmalloc \ |
| 487 | install-newlib \ |
| 488 | $(start-sanitize-chill) \ |
| 489 | install-chillrt \ |
| 490 | $(end-sanitize-chill) \ |
| 491 | install-gcc install-etc install-deja-gnu |
| 492 | |
| 493 | ### gzip |
| 494 | all-gzip: all-libiberty |
| 495 | @if [ -f ./gzip/Makefile ] ; then \ |
| 496 | rootme=`pwd` ; export rootme ; \ |
| 497 | (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 498 | else \ |
| 499 | true ; \ |
| 500 | fi |
| 501 | |
| 502 | install-gzip: force |
| 503 | @if [ -f ./gzip/Makefile ] ; then \ |
| 504 | rootme=`pwd` ; export rootme ; \ |
| 505 | (cd ./gzip; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 506 | else \ |
| 507 | true ; \ |
| 508 | fi |
| 509 | |
| 510 | ### hello |
| 511 | all-hello: all-libiberty |
| 512 | @if [ -f ./hello/Makefile ] ; then \ |
| 513 | rootme=`pwd` ; export rootme ; \ |
| 514 | (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 515 | else \ |
| 516 | true ; \ |
| 517 | fi |
| 518 | |
| 519 | install-hello: force |
| 520 | @if [ -f ./hello/Makefile ] ; then \ |
| 521 | rootme=`pwd` ; export rootme ; \ |
| 522 | (cd ./hello; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 523 | else \ |
| 524 | true ; \ |
| 525 | fi |
| 526 | |
| 527 | ### recode |
| 528 | all-recode: all-libiberty |
| 529 | @if [ -f ./recode/Makefile ] ; then \ |
| 530 | rootme=`pwd` ; export rootme ; \ |
| 531 | (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 532 | else \ |
| 533 | true ; \ |
| 534 | fi |
| 535 | |
| 536 | install-recode: force |
| 537 | @if [ -f ./recode/Makefile ] ; then \ |
| 538 | rootme=`pwd` ; export rootme ; \ |
| 539 | (cd ./recode; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 540 | else \ |
| 541 | true ; \ |
| 542 | fi |
| 543 | |
| 544 | ### indent |
| 545 | all-indent: force |
| 546 | @if [ -f ./indent/Makefile ] ; then \ |
| 547 | rootme=`pwd` ; export rootme ; \ |
| 548 | (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 549 | else \ |
| 550 | true ; \ |
| 551 | fi |
| 552 | |
| 553 | install-indent: force |
| 554 | @if [ -f ./indent/Makefile ] ; then \ |
| 555 | rootme=`pwd` ; export rootme ; \ |
| 556 | (cd ./indent; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 557 | else \ |
| 558 | true ; \ |
| 559 | fi |
| 560 | |
| 561 | ### tar |
| 562 | all-tar: all-libiberty |
| 563 | @if [ -f ./tar/Makefile ] ; then \ |
| 564 | rootme=`pwd` ; export rootme ; \ |
| 565 | (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 566 | else \ |
| 567 | true ; \ |
| 568 | fi |
| 569 | |
| 570 | install-tar: force |
| 571 | @if [ -f ./tar/Makefile ] ; then \ |
| 572 | rootme=`pwd` ; export rootme ; \ |
| 573 | (cd ./tar; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 574 | else \ |
| 575 | true ; \ |
| 576 | fi |
| 577 | |
| 578 | |
| 579 | ### deja-gnu |
| 580 | all-deja-gnu: force |
| 581 | @if [ -f ./deja-gnu/Makefile ] ; then \ |
| 582 | rootme=`pwd` ; export rootme ; \ |
| 583 | (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 584 | else \ |
| 585 | true ; \ |
| 586 | fi |
| 587 | |
| 588 | install-deja-gnu: force |
| 589 | @if [ -f ./deja-gnu/Makefile ] ; then \ |
| 590 | rootme=`pwd` ; export rootme ; \ |
| 591 | (cd ./deja-gnu; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 592 | else \ |
| 593 | true ; \ |
| 594 | fi |
| 595 | |
| 596 | ### autoconf |
| 597 | all-autoconf: force |
| 598 | @if [ -f ./autoconf/Makefile ] ; then \ |
| 599 | rootme=`pwd` ; export rootme ; \ |
| 600 | (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 601 | else \ |
| 602 | true ; \ |
| 603 | fi |
| 604 | |
| 605 | install-autoconf: force |
| 606 | @if [ -f ./autoconf/Makefile ] ; then \ |
| 607 | rootme=`pwd` ; export rootme ; \ |
| 608 | (cd ./autoconf; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 609 | else \ |
| 610 | true ; \ |
| 611 | fi |
| 612 | |
| 613 | ### etc |
| 614 | all-etc: force |
| 615 | @if [ -f ./etc/Makefile ] ; then \ |
| 616 | rootme=`pwd` ; export rootme ; \ |
| 617 | (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 618 | else \ |
| 619 | true ; \ |
| 620 | fi |
| 621 | |
| 622 | install-etc: force |
| 623 | @if [ -f ./etc/Makefile ] ; then \ |
| 624 | rootme=`pwd` ; export rootme ; \ |
| 625 | (cd ./etc; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 626 | else \ |
| 627 | true ; \ |
| 628 | fi |
| 629 | |
| 630 | ### libiberty |
| 631 | all-libiberty: force |
| 632 | @if [ -f ./libiberty/Makefile ] ; then \ |
| 633 | rootme=`pwd` ; export rootme ; \ |
| 634 | (cd ./libiberty; \ |
| 635 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 636 | else \ |
| 637 | true ; \ |
| 638 | fi |
| 639 | |
| 640 | install-libiberty: force |
| 641 | @if [ -f ./libiberty/Makefile ] ; then \ |
| 642 | rootme=`pwd` ; export rootme ; \ |
| 643 | (cd ./libiberty; \ |
| 644 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 645 | else \ |
| 646 | true ; \ |
| 647 | fi |
| 648 | |
| 649 | ### xiberty |
| 650 | all-xiberty: all-gcc all-newlib |
| 651 | @if [ -f ./xiberty/Makefile ] ; then \ |
| 652 | rootme=`pwd` ; export rootme ; \ |
| 653 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 654 | (cd ./xiberty; \ |
| 655 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
| 656 | else \ |
| 657 | true ; \ |
| 658 | fi |
| 659 | |
| 660 | install-xiberty: force |
| 661 | @if [ -f ./xiberty/Makefile ] ; then \ |
| 662 | rootme=`pwd` ; export rootme ; \ |
| 663 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 664 | (cd ./xiberty; \ |
| 665 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
| 666 | else \ |
| 667 | true ; \ |
| 668 | fi |
| 669 | |
| 670 | ### mmalloc |
| 671 | all-mmalloc: force |
| 672 | @if [ -f ./mmalloc/Makefile ] ; then \ |
| 673 | rootme=`pwd` ; export rootme ; \ |
| 674 | (cd ./mmalloc; \ |
| 675 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 676 | else \ |
| 677 | true ; \ |
| 678 | fi |
| 679 | |
| 680 | install-mmalloc: force |
| 681 | @if [ -f ./mmalloc/Makefile ] ; then \ |
| 682 | rootme=`pwd` ; export rootme ; \ |
| 683 | (cd ./mmalloc; \ |
| 684 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 685 | else \ |
| 686 | true ; \ |
| 687 | fi |
| 688 | |
| 689 | ### texinfo |
| 690 | all-texinfo: all-libiberty |
| 691 | @if [ -f ./texinfo/Makefile ] ; then \ |
| 692 | rootme=`pwd` ; export rootme ; \ |
| 693 | (cd ./texinfo; \ |
| 694 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 695 | else \ |
| 696 | true ; \ |
| 697 | fi |
| 698 | |
| 699 | install-texinfo: force |
| 700 | @if [ -f ./texinfo/Makefile ] ; then \ |
| 701 | rootme=`pwd` ; export rootme ; \ |
| 702 | (cd ./texinfo; \ |
| 703 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 704 | else \ |
| 705 | true ; \ |
| 706 | fi |
| 707 | |
| 708 | ### bfd |
| 709 | all-bfd: force |
| 710 | @if [ -f ./bfd/Makefile ] ; then \ |
| 711 | rootme=`pwd` ; export rootme ; \ |
| 712 | (cd ./bfd; \ |
| 713 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 714 | else \ |
| 715 | true ; \ |
| 716 | fi |
| 717 | |
| 718 | install-bfd: force |
| 719 | @if [ -f ./bfd/Makefile ] ; then \ |
| 720 | rootme=`pwd` ; export rootme ; \ |
| 721 | (cd ./bfd; \ |
| 722 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 723 | else \ |
| 724 | true ; \ |
| 725 | fi |
| 726 | |
| 727 | |
| 728 | ### opcodes |
| 729 | all-opcodes: force |
| 730 | @if [ -f ./opcodes/Makefile ] ; then \ |
| 731 | rootme=`pwd` ; export rootme ; \ |
| 732 | (cd ./opcodes; \ |
| 733 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 734 | else \ |
| 735 | true ; \ |
| 736 | fi |
| 737 | |
| 738 | install-opcodes: force |
| 739 | @if [ -f ./opcodes/Makefile ] ; then \ |
| 740 | rootme=`pwd` ; export rootme ; \ |
| 741 | (cd ./opcodes; \ |
| 742 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 743 | else \ |
| 744 | true ; \ |
| 745 | fi |
| 746 | |
| 747 | ### binutils |
| 748 | all-binutils: all-opcodes all-libiberty all-bfd all-flex |
| 749 | @if [ -f ./binutils/Makefile ] ; then \ |
| 750 | rootme=`pwd` ; export rootme ; \ |
| 751 | (cd ./binutils; \ |
| 752 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 753 | else \ |
| 754 | true ; \ |
| 755 | fi |
| 756 | |
| 757 | install-binutils: force |
| 758 | @if [ -f ./binutils/Makefile ] ; then \ |
| 759 | rootme=`pwd` ; export rootme ; \ |
| 760 | (cd ./binutils; \ |
| 761 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 762 | else \ |
| 763 | true ; \ |
| 764 | fi |
| 765 | |
| 766 | ### newlib |
| 767 | all-newlib: all-binutils all-ld all-gas all-gcc |
| 768 | @if [ -f ./newlib/Makefile ] ; then \ |
| 769 | rootme=`pwd` ; export rootme ; \ |
| 770 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
| 771 | (cd ./newlib; \ |
| 772 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
| 773 | else \ |
| 774 | true ; \ |
| 775 | fi |
| 776 | |
| 777 | install-newlib: force |
| 778 | @if [ -f ./newlib/Makefile ] ; then \ |
| 779 | rootme=`pwd` ; export rootme ; \ |
| 780 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
| 781 | (cd ./newlib; \ |
| 782 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
| 783 | else \ |
| 784 | true ; \ |
| 785 | fi |
| 786 | |
| 787 | ### start-sanitize-chill |
| 788 | ### chillrt |
| 789 | all-chillrt: all-binutils all-ld all-gas all-gcc all-newlib |
| 790 | @if [ -f ./chillrt/Makefile ] ; then \ |
| 791 | rootme=`pwd` ; export rootme ; \ |
| 792 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
| 793 | (cd ./chillrt; \ |
| 794 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
| 795 | else \ |
| 796 | true ; \ |
| 797 | fi |
| 798 | |
| 799 | install-chillrt: force |
| 800 | @if [ -f ./chillrt/Makefile ] ; then \ |
| 801 | rootme=`pwd` ; export rootme ; \ |
| 802 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
| 803 | (cd ./chillrt; \ |
| 804 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
| 805 | else \ |
| 806 | true ; \ |
| 807 | fi |
| 808 | |
| 809 | all-gdb: all-chillrt |
| 810 | ### end-sanitize-chill |
| 811 | |
| 812 | ### gprof |
| 813 | all-gprof: all-libiberty all-bfd |
| 814 | @if [ -f ./gprof/Makefile ] ; then \ |
| 815 | rootme=`pwd` ; export rootme ; \ |
| 816 | (cd ./gprof; \ |
| 817 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 818 | else \ |
| 819 | true ; \ |
| 820 | fi |
| 821 | |
| 822 | install-gprof: force |
| 823 | @if [ -f ./gprof/Makefile ] ; then \ |
| 824 | rootme=`pwd` ; export rootme ; \ |
| 825 | (cd ./gprof; \ |
| 826 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 827 | else \ |
| 828 | true ; \ |
| 829 | fi |
| 830 | |
| 831 | ### byacc |
| 832 | all-byacc: force |
| 833 | @if [ -f ./byacc/Makefile ] ; then \ |
| 834 | rootme=`pwd` ; export rootme ; \ |
| 835 | (cd ./byacc; \ |
| 836 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 837 | else \ |
| 838 | true ; \ |
| 839 | fi |
| 840 | |
| 841 | install-byacc: force |
| 842 | @if [ -f ./byacc/Makefile ] ; then \ |
| 843 | rootme=`pwd` ; export rootme ; \ |
| 844 | (cd ./byacc; \ |
| 845 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 846 | else \ |
| 847 | true ; \ |
| 848 | fi |
| 849 | |
| 850 | ### flex |
| 851 | all-flex: all-libiberty |
| 852 | @if [ -f ./flex/Makefile ] ; then \ |
| 853 | rootme=`pwd` ; export rootme ; \ |
| 854 | (cd ./flex; \ |
| 855 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 856 | else \ |
| 857 | true ; \ |
| 858 | fi |
| 859 | |
| 860 | install-flex: force |
| 861 | @if [ -f ./flex/Makefile ] ; then \ |
| 862 | rootme=`pwd` ; export rootme ; \ |
| 863 | (cd ./flex; \ |
| 864 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 865 | else \ |
| 866 | true ; \ |
| 867 | fi |
| 868 | ### gcc |
| 869 | all-gcc: all-libiberty all-byacc all-binutils all-gas |
| 870 | @if [ -f ./gcc/Makefile ] ; then \ |
| 871 | rootme=`pwd` ; export rootme ; \ |
| 872 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
| 873 | (cd ./gcc; \ |
| 874 | $(MAKE) $(GCC_FLAGS_TO_PASS) all) ; \ |
| 875 | else \ |
| 876 | true ; \ |
| 877 | fi |
| 878 | |
| 879 | install-gcc: force |
| 880 | @if [ -f ./gcc/Makefile ] ; then \ |
| 881 | rootme=`pwd` ; export rootme ; \ |
| 882 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
| 883 | (cd ./gcc; \ |
| 884 | $(MAKE) $(GCC_FLAGS_TO_PASS) install) ; \ |
| 885 | else \ |
| 886 | true ; \ |
| 887 | fi |
| 888 | |
| 889 | ### readline |
| 890 | all-readline: force |
| 891 | @if [ -f ./readline/Makefile ] ; then \ |
| 892 | rootme=`pwd` ; export rootme ; \ |
| 893 | (cd ./readline; \ |
| 894 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 895 | else \ |
| 896 | true ; \ |
| 897 | fi |
| 898 | |
| 899 | install-readline: force |
| 900 | @if [ -f ./readline/Makefile ] ; then \ |
| 901 | rootme=`pwd` ; export rootme ; \ |
| 902 | (cd ./readline; \ |
| 903 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 904 | else \ |
| 905 | true ; \ |
| 906 | fi |
| 907 | |
| 908 | ### glob |
| 909 | all-glob: force |
| 910 | @if [ -f ./glob/Makefile ] ; then \ |
| 911 | rootme=`pwd` ; export rootme ; \ |
| 912 | (cd ./glob; \ |
| 913 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 914 | else \ |
| 915 | true ; \ |
| 916 | fi |
| 917 | |
| 918 | install-glob: force |
| 919 | @if [ -f ./glob/Makefile ] ; then \ |
| 920 | rootme=`pwd` ; export rootme ; \ |
| 921 | (cd ./glob; \ |
| 922 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 923 | else \ |
| 924 | true ; \ |
| 925 | fi |
| 926 | |
| 927 | ### gas |
| 928 | all-gas: all-libiberty all-opcodes all-bfd |
| 929 | @if [ -f ./gas/Makefile ] ; then \ |
| 930 | rootme=`pwd` ; export rootme ; \ |
| 931 | (cd ./gas; \ |
| 932 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 933 | else \ |
| 934 | true ; \ |
| 935 | fi |
| 936 | |
| 937 | install-gas: force |
| 938 | @if [ -f ./gas/Makefile ] ; then \ |
| 939 | rootme=`pwd` ; export rootme ; \ |
| 940 | (cd ./gas; \ |
| 941 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 942 | else \ |
| 943 | true ; \ |
| 944 | fi |
| 945 | |
| 946 | ### gas |
| 947 | all-tgas: all-libiberty all-bfd |
| 948 | @if [ -f ./tgas/Makefile ] ; then \ |
| 949 | rootme=`pwd` ; export rootme ; \ |
| 950 | (cd ./tgas; \ |
| 951 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 952 | else \ |
| 953 | true ; \ |
| 954 | fi |
| 955 | |
| 956 | |
| 957 | ### ld |
| 958 | all-ld: all-libiberty all-bfd all-byacc all-flex |
| 959 | @if [ -f ./ld/Makefile ] ; then \ |
| 960 | rootme=`pwd` ; export rootme ; \ |
| 961 | (cd ./ld; \ |
| 962 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 963 | else \ |
| 964 | true ; \ |
| 965 | fi |
| 966 | |
| 967 | install-ld: force |
| 968 | @if [ -f ./ld/Makefile ] ; then \ |
| 969 | rootme=`pwd` ; export rootme ; \ |
| 970 | (cd ./ld; \ |
| 971 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 972 | else \ |
| 973 | true ; \ |
| 974 | fi |
| 975 | |
| 976 | ### gdb |
| 977 | all-gdb: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc |
| 978 | @if [ -f ./gdb/Makefile ] ; then \ |
| 979 | rootme=`pwd` ; export rootme ; \ |
| 980 | (cd ./gdb; \ |
| 981 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 982 | else \ |
| 983 | true ; \ |
| 984 | fi |
| 985 | |
| 986 | install-gdb: force |
| 987 | @if [ -f ./gdb/Makefile ] ; then \ |
| 988 | rootme=`pwd` ; export rootme ; \ |
| 989 | (cd ./gdb; \ |
| 990 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 991 | else \ |
| 992 | true ; \ |
| 993 | fi |
| 994 | |
| 995 | ### make |
| 996 | all-make: all-libiberty |
| 997 | @if [ -f ./make/Makefile ] ; then \ |
| 998 | rootme=`pwd` ; export rootme ; \ |
| 999 | (cd ./make; \ |
| 1000 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1001 | else \ |
| 1002 | true ; \ |
| 1003 | fi |
| 1004 | |
| 1005 | install-make: force |
| 1006 | @if [ -f ./make/Makefile ] ; then \ |
| 1007 | rootme=`pwd` ; export rootme ; \ |
| 1008 | (cd ./make; \ |
| 1009 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1010 | else \ |
| 1011 | true ; \ |
| 1012 | fi |
| 1013 | |
| 1014 | ### diff |
| 1015 | all-diff: all-libiberty |
| 1016 | @if [ -f ./diff/Makefile ] ; then \ |
| 1017 | rootme=`pwd` ; export rootme ; \ |
| 1018 | (cd ./diff; \ |
| 1019 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1020 | else \ |
| 1021 | true ; \ |
| 1022 | fi |
| 1023 | |
| 1024 | install-diff: force |
| 1025 | @if [ -f ./diff/Makefile ] ; then \ |
| 1026 | rootme=`pwd` ; export rootme ; \ |
| 1027 | (cd ./diff/; \ |
| 1028 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1029 | else \ |
| 1030 | true ; \ |
| 1031 | fi |
| 1032 | |
| 1033 | ### grep |
| 1034 | all-grep: force |
| 1035 | @if [ -f ./grep/Makefile ] ; then \ |
| 1036 | rootme=`pwd` ; export rootme ; \ |
| 1037 | (cd ./grep; \ |
| 1038 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1039 | else \ |
| 1040 | true ; \ |
| 1041 | fi |
| 1042 | |
| 1043 | install-grep: force |
| 1044 | @if [ -f ./grep/Makefile ] ; then \ |
| 1045 | rootme=`pwd` ; export rootme ; \ |
| 1046 | (cd ./grep; \ |
| 1047 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1048 | else \ |
| 1049 | true ; \ |
| 1050 | fi |
| 1051 | |
| 1052 | ### rcs |
| 1053 | all-rcs: force |
| 1054 | @if [ -f ./rcs/Makefile ] ; then \ |
| 1055 | rootme=`pwd` ; export rootme ; \ |
| 1056 | (cd ./rcs; \ |
| 1057 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1058 | else \ |
| 1059 | true ; \ |
| 1060 | fi |
| 1061 | |
| 1062 | install-rcs: force |
| 1063 | @if [ -f ./rcs/Makefile ] ; then \ |
| 1064 | rootme=`pwd` ; export rootme ; \ |
| 1065 | (cd ./rcs; \ |
| 1066 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1067 | else \ |
| 1068 | true ; \ |
| 1069 | fi |
| 1070 | |
| 1071 | ### cvs |
| 1072 | all-cvs: force |
| 1073 | @if [ -f ./cvs/Makefile ] ; then \ |
| 1074 | rootme=`pwd` ; export rootme ; \ |
| 1075 | (cd ./cvs; \ |
| 1076 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1077 | else \ |
| 1078 | true ; \ |
| 1079 | fi |
| 1080 | |
| 1081 | install-cvs: force |
| 1082 | @if [ -f ./cvs/Makefile ] ; then \ |
| 1083 | rootme=`pwd` ; export rootme ; \ |
| 1084 | (cd ./cvs; \ |
| 1085 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1086 | else \ |
| 1087 | true ; \ |
| 1088 | fi |
| 1089 | |
| 1090 | ### patch |
| 1091 | all-patch: force |
| 1092 | @if [ -f ./patch/Makefile ] ; then \ |
| 1093 | rootme=`pwd` ; export rootme ; \ |
| 1094 | (cd ./patch; \ |
| 1095 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1096 | else \ |
| 1097 | true ; \ |
| 1098 | fi |
| 1099 | |
| 1100 | install-patch: force |
| 1101 | @if [ -f ./patch/Makefile ] ; then \ |
| 1102 | rootme=`pwd` ; export rootme ; \ |
| 1103 | (cd ./patch; \ |
| 1104 | $(MAKE) $(FLAGS_TO_PASS) \ |
| 1105 | bindir=$(bindir) \ |
| 1106 | man1dir=$(man1dir) install) ; \ |
| 1107 | else \ |
| 1108 | true ; \ |
| 1109 | fi |
| 1110 | |
| 1111 | ### emacs |
| 1112 | all-emacs: force |
| 1113 | @if [ -f ./emacs/Makefile ] ; then \ |
| 1114 | rootme=`pwd` ; export rootme ; \ |
| 1115 | (cd ./emacs; \ |
| 1116 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \ |
| 1117 | else \ |
| 1118 | true ; \ |
| 1119 | fi |
| 1120 | |
| 1121 | install-emacs: force |
| 1122 | @if [ -f ./emacs/Makefile ] ; then \ |
| 1123 | rootme=`pwd` ; export rootme ; \ |
| 1124 | (cd ./emacs; \ |
| 1125 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \ |
| 1126 | else \ |
| 1127 | true ; \ |
| 1128 | fi |
| 1129 | |
| 1130 | ### ispell |
| 1131 | all-ispell: all-emacs |
| 1132 | @if [ -f ./ispell/Makefile ] ; then \ |
| 1133 | rootme=`pwd` ; export rootme ; \ |
| 1134 | (cd ./ispell; \ |
| 1135 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1136 | else \ |
| 1137 | true ; \ |
| 1138 | fi |
| 1139 | |
| 1140 | install-ispell: force |
| 1141 | @if [ -f ./ispell/Makefile ] ; then \ |
| 1142 | rootme=`pwd` ; export rootme ; \ |
| 1143 | (cd ./ispell; \ |
| 1144 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1145 | else \ |
| 1146 | true ; \ |
| 1147 | fi |
| 1148 | |
| 1149 | ### prms |
| 1150 | all-prms: force |
| 1151 | @if [ -f ./prms/Makefile ] ; then \ |
| 1152 | rootme=`pwd` ; export rootme ; \ |
| 1153 | (cd ./prms; \ |
| 1154 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1155 | else \ |
| 1156 | true ; \ |
| 1157 | fi |
| 1158 | |
| 1159 | install-prms: force |
| 1160 | @if [ -f ./prms/Makefile ] ; then \ |
| 1161 | rootme=`pwd` ; export rootme ; \ |
| 1162 | (cd ./prms; \ |
| 1163 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1164 | else \ |
| 1165 | true ; \ |
| 1166 | fi |
| 1167 | |
| 1168 | ### send-pr |
| 1169 | all-send-pr: force |
| 1170 | @if [ -f ./send-pr/Makefile ] ; then \ |
| 1171 | rootme=`pwd` ; export rootme ; \ |
| 1172 | (cd ./send-pr; \ |
| 1173 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1174 | else \ |
| 1175 | true ; \ |
| 1176 | fi |
| 1177 | |
| 1178 | install-send-pr: force |
| 1179 | @if [ -f ./send-pr/Makefile ] ; then \ |
| 1180 | rootme=`pwd` ; export rootme ; \ |
| 1181 | (cd ./send-pr; \ |
| 1182 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1183 | else \ |
| 1184 | true ; \ |
| 1185 | fi |
| 1186 | |
| 1187 | ### libm |
| 1188 | all-libm: force |
| 1189 | @if [ -f ./libm/Makefile ] ; then \ |
| 1190 | rootme=`pwd` ; export rootme ; \ |
| 1191 | (cd ./libm; \ |
| 1192 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
| 1193 | else \ |
| 1194 | true ; \ |
| 1195 | fi |
| 1196 | |
| 1197 | install-libm: force |
| 1198 | @if [ -f ./libm/Makefile ] ; then \ |
| 1199 | rootme=`pwd` ; export rootme ; \ |
| 1200 | (cd ./libm; \ |
| 1201 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
| 1202 | else \ |
| 1203 | true ; \ |
| 1204 | fi |
| 1205 | |
| 1206 | ### libg++ |
| 1207 | |
| 1208 | all-libg++: all-gas all-ld all-gcc all-xiberty all-newlib |
| 1209 | @if [ -f ./libg++/Makefile ] ; then \ |
| 1210 | rootme=`pwd` ; export rootme ; \ |
| 1211 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
| 1212 | (cd ./libg++; \ |
| 1213 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) ; \ |
| 1214 | else \ |
| 1215 | true ; \ |
| 1216 | fi |
| 1217 | |
| 1218 | install-libg++: force |
| 1219 | @if [ -f ./libg++/Makefile ] ; then \ |
| 1220 | rootme=`pwd` ; export rootme ; \ |
| 1221 | srcroot=`cd $(srcdir); pwd` ; export srcroot ; \ |
| 1222 | (cd ./libg++; \ |
| 1223 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) ; \ |
| 1224 | else \ |
| 1225 | true ; \ |
| 1226 | fi |
| 1227 | ### tcl |
| 1228 | all-tcl: |
| 1229 | @if [ -f ./tcl/Makefile ] ; then \ |
| 1230 | rootme=`pwd` ; export rootme ; \ |
| 1231 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 1232 | (cd ./tcl; \ |
| 1233 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1234 | else \ |
| 1235 | true ; \ |
| 1236 | fi |
| 1237 | |
| 1238 | install-tcl: force |
| 1239 | @if [ -f ./tcl/Makefile ] ; then \ |
| 1240 | rootme=`pwd` ; export rootme ; \ |
| 1241 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 1242 | (cd ./tcl; \ |
| 1243 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1244 | else \ |
| 1245 | true ; \ |
| 1246 | fi |
| 1247 | |
| 1248 | |
| 1249 | ### tk |
| 1250 | all-tk: all-tcl |
| 1251 | @if [ -f ./tk/Makefile ] ; then \ |
| 1252 | rootme=`pwd` ; export rootme ; \ |
| 1253 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 1254 | (cd ./tk; \ |
| 1255 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \ |
| 1256 | else \ |
| 1257 | true ; \ |
| 1258 | fi |
| 1259 | |
| 1260 | install-tk: force |
| 1261 | @if [ -f ./tk/Makefile ] ; then \ |
| 1262 | rootme=`pwd` ; export rootme ; \ |
| 1263 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 1264 | (cd ./tk; \ |
| 1265 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \ |
| 1266 | else \ |
| 1267 | true ; \ |
| 1268 | fi |
| 1269 | |
| 1270 | ### tclX |
| 1271 | all-tclX: all-tcl all-tk |
| 1272 | @if [ -f ./tclX/Makefile ] ; then \ |
| 1273 | rootme=`pwd` ; export rootme ; \ |
| 1274 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 1275 | (cd ./tclX; \ |
| 1276 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \ |
| 1277 | else \ |
| 1278 | true ; \ |
| 1279 | fi |
| 1280 | |
| 1281 | install-tclX: force |
| 1282 | @if [ -f ./tclX/Makefile ] ; then \ |
| 1283 | rootme=`pwd` ; export rootme ; \ |
| 1284 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 1285 | (cd ./tclX; \ |
| 1286 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \ |
| 1287 | else \ |
| 1288 | true ; \ |
| 1289 | fi |
| 1290 | |
| 1291 | |
| 1292 | ### expect |
| 1293 | all-expect: all-tcl |
| 1294 | @if [ -f ./expect/Makefile ] ; then \ |
| 1295 | rootme=`pwd` ; export rootme ; \ |
| 1296 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 1297 | (cd ./expect; \ |
| 1298 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) ; \ |
| 1299 | else \ |
| 1300 | true ; \ |
| 1301 | fi |
| 1302 | |
| 1303 | install-expect: force |
| 1304 | @if [ -f ./expect/Makefile ] ; then \ |
| 1305 | rootme=`pwd` ; export rootme ; \ |
| 1306 | srcroot=`cd $(srcdir); pwd`; export srcroot ; \ |
| 1307 | (cd ./expect; \ |
| 1308 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) ; \ |
| 1309 | else \ |
| 1310 | true ; \ |
| 1311 | fi |
| 1312 | |
| 1313 | ### sim |
| 1314 | all-sim: all-bfd |
| 1315 | @if [ -f ./sim/Makefile ] ; then \ |
| 1316 | rootme=`pwd` ; export rootme ; \ |
| 1317 | (cd ./sim; \ |
| 1318 | $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1319 | else \ |
| 1320 | true ; \ |
| 1321 | fi |
| 1322 | |
| 1323 | install-sim: force |
| 1324 | @if [ -f ./sim/Makefile ] ; then \ |
| 1325 | rootme=`pwd` ; export rootme ; \ |
| 1326 | (cd ./sim; \ |
| 1327 | $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1328 | else \ |
| 1329 | true ; \ |
| 1330 | fi |
| 1331 | |
| 1332 | ### fileutils |
| 1333 | all-fileutils: force |
| 1334 | @if [ -f ./fileutils/Makefile ] ; then \ |
| 1335 | rootme=`pwd` ; export rootme ; \ |
| 1336 | (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1337 | else \ |
| 1338 | true ; \ |
| 1339 | fi |
| 1340 | |
| 1341 | install-fileutils: force |
| 1342 | @if [ -f ./fileutils/Makefile ] ; then \ |
| 1343 | rootme=`pwd` ; export rootme ; \ |
| 1344 | (cd ./fileutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1345 | else \ |
| 1346 | true ; \ |
| 1347 | fi |
| 1348 | |
| 1349 | ### find |
| 1350 | all-find: force |
| 1351 | @if [ -f ./find/Makefile ] ; then \ |
| 1352 | rootme=`pwd` ; export rootme ; \ |
| 1353 | (cd ./find; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1354 | else \ |
| 1355 | true ; \ |
| 1356 | fi |
| 1357 | |
| 1358 | install-find: force |
| 1359 | @if [ -f ./find/Makefile ] ; then \ |
| 1360 | rootme=`pwd` ; export rootme ; \ |
| 1361 | (cd ./find; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1362 | else \ |
| 1363 | true ; \ |
| 1364 | fi |
| 1365 | |
| 1366 | ### gawk |
| 1367 | all-gawk: force |
| 1368 | @if [ -f ./gawk/Makefile ] ; then \ |
| 1369 | rootme=`pwd` ; export rootme ; \ |
| 1370 | (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1371 | else \ |
| 1372 | true ; \ |
| 1373 | fi |
| 1374 | |
| 1375 | install-gawk: force |
| 1376 | @if [ -f ./gawk/Makefile ] ; then \ |
| 1377 | rootme=`pwd` ; export rootme ; \ |
| 1378 | (cd ./gawk; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1379 | else \ |
| 1380 | true ; \ |
| 1381 | fi |
| 1382 | |
| 1383 | ### m4 |
| 1384 | all-m4: all-libiberty |
| 1385 | @if [ -f ./m4/Makefile ] ; then \ |
| 1386 | rootme=`pwd` ; export rootme ; \ |
| 1387 | (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1388 | else \ |
| 1389 | true ; \ |
| 1390 | fi |
| 1391 | |
| 1392 | install-m4: force |
| 1393 | @if [ -f ./m4/Makefile ] ; then \ |
| 1394 | rootme=`pwd` ; export rootme ; \ |
| 1395 | (cd ./m4; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1396 | else \ |
| 1397 | true ; \ |
| 1398 | fi |
| 1399 | |
| 1400 | ### sed |
| 1401 | all-sed: force |
| 1402 | @if [ -f ./sed/Makefile ] ; then \ |
| 1403 | rootme=`pwd` ; export rootme ; \ |
| 1404 | (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1405 | else \ |
| 1406 | true ; \ |
| 1407 | fi |
| 1408 | |
| 1409 | install-sed: force |
| 1410 | @if [ -f ./sed/Makefile ] ; then \ |
| 1411 | rootme=`pwd` ; export rootme ; \ |
| 1412 | (cd ./sed; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1413 | else \ |
| 1414 | true ; \ |
| 1415 | fi |
| 1416 | |
| 1417 | ### time |
| 1418 | all-time: force |
| 1419 | @if [ -f ./time/Makefile ] ; then \ |
| 1420 | rootme=`pwd` ; export rootme ; \ |
| 1421 | (cd ./time; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1422 | else \ |
| 1423 | true ; \ |
| 1424 | fi |
| 1425 | |
| 1426 | install-time: force |
| 1427 | @if [ -f ./time/Makefile ] ; then \ |
| 1428 | rootme=`pwd` ; export rootme ; \ |
| 1429 | (cd ./time; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1430 | else \ |
| 1431 | true ; \ |
| 1432 | fi |
| 1433 | |
| 1434 | ### wdiff |
| 1435 | all-wdiff: force |
| 1436 | @if [ -f ./wdiff/Makefile ] ; then \ |
| 1437 | rootme=`pwd` ; export rootme ; \ |
| 1438 | (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1439 | else \ |
| 1440 | true ; \ |
| 1441 | fi |
| 1442 | |
| 1443 | install-wdiff: force |
| 1444 | @if [ -f ./wdiff/Makefile ] ; then \ |
| 1445 | rootme=`pwd` ; export rootme ; \ |
| 1446 | (cd ./wdiff; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1447 | else \ |
| 1448 | true ; \ |
| 1449 | fi |
| 1450 | |
| 1451 | ### uudecode |
| 1452 | all-uudecode: all-libiberty |
| 1453 | @if [ -f ./uudecode/Makefile ] ; then \ |
| 1454 | rootme=`pwd` ; export rootme ; \ |
| 1455 | (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1456 | else \ |
| 1457 | true ; \ |
| 1458 | fi |
| 1459 | |
| 1460 | install-uudecode: force |
| 1461 | @if [ -f ./uudecode/Makefile ] ; then \ |
| 1462 | rootme=`pwd` ; export rootme ; \ |
| 1463 | (cd ./uudecode; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1464 | else \ |
| 1465 | true ; \ |
| 1466 | fi |
| 1467 | |
| 1468 | ### shellutils |
| 1469 | all-shellutils: force |
| 1470 | @if [ -f ./shellutils/Makefile ] ; then \ |
| 1471 | rootme=`pwd` ; export rootme ; \ |
| 1472 | (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1473 | else \ |
| 1474 | true ; \ |
| 1475 | fi |
| 1476 | |
| 1477 | install-shellutils: force |
| 1478 | @if [ -f ./shellutils/Makefile ] ; then \ |
| 1479 | rootme=`pwd` ; export rootme ; \ |
| 1480 | (cd ./shellutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1481 | else \ |
| 1482 | true ; \ |
| 1483 | fi |
| 1484 | |
| 1485 | ### textutils |
| 1486 | all-textutils: force |
| 1487 | @if [ -f ./textutils/Makefile ] ; then \ |
| 1488 | rootme=`pwd` ; export rootme ; \ |
| 1489 | (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) all) ; \ |
| 1490 | else \ |
| 1491 | true ; \ |
| 1492 | fi |
| 1493 | |
| 1494 | install-textutils: force |
| 1495 | @if [ -f ./textutils/Makefile ] ; then \ |
| 1496 | rootme=`pwd` ; export rootme ; \ |
| 1497 | (cd ./textutils; $(MAKE) $(FLAGS_TO_PASS) install) ; \ |
| 1498 | else \ |
| 1499 | true ; \ |
| 1500 | fi |
| 1501 | |
| 1502 | |
| 1503 | |
| 1504 | ### other supporting targets |
| 1505 | |
| 1506 | MAKEDIRS= \ |
| 1507 | $(prefix) \ |
| 1508 | $(exec_prefix) \ |
| 1509 | $(tooldir) |
| 1510 | |
| 1511 | # $(bindir) \ |
| 1512 | # $(libdir) \ |
| 1513 | # $(includedir) \ |
| 1514 | # $(datadir) \ |
| 1515 | # $(docdir) \ |
| 1516 | # $(mandir) \ |
| 1517 | # $(man1dir) \ |
| 1518 | # $(man5dir) |
| 1519 | |
| 1520 | # $(man2dir) \ |
| 1521 | # $(man3dir) \ |
| 1522 | # $(man4dir) \ |
| 1523 | # $(man6dir) \ |
| 1524 | # $(man7dir) \ |
| 1525 | # $(man8dir) |
| 1526 | |
| 1527 | install-dirs: |
| 1528 | for i in $(MAKEDIRS) ; do \ |
| 1529 | echo Making $$i... ; \ |
| 1530 | parent=`echo $$i|sed -e 's@/[^/]*$$@@'`; \ |
| 1531 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \ |
| 1532 | if [ ! -d $$i ] ; then \ |
| 1533 | if mkdir $$i ; then \ |
| 1534 | true ; \ |
| 1535 | else \ |
| 1536 | exit 1 ; \ |
| 1537 | fi ; \ |
| 1538 | else \ |
| 1539 | true ; \ |
| 1540 | fi ; \ |
| 1541 | done |
| 1542 | |
| 1543 | install-info-dirs: |
| 1544 | if [ -d $(prefix) ] ; then true ; else mkdir $(prefix) ; fi |
| 1545 | -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \ |
| 1546 | if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi |
| 1547 | -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi |
| 1548 | |
| 1549 | dir.info: do-install-info |
| 1550 | if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ |
| 1551 | $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ |
| 1552 | mv -f dir.info.new dir.info ; \ |
| 1553 | else true ; \ |
| 1554 | fi |
| 1555 | |
| 1556 | dist: |
| 1557 | @echo "Building a full distribution of this tree isn't done" |
| 1558 | @echo "via 'make dist'. Check out the etc/ subdirectory" |
| 1559 | |
| 1560 | etags tags: TAGS |
| 1561 | |
| 1562 | TAGS: |
| 1563 | etags `$(MAKE) ls` |
| 1564 | |
| 1565 | ls: |
| 1566 | @echo Makefile |
| 1567 | @for i in $(SUBDIRS); \ |
| 1568 | do \ |
| 1569 | (cd $$i; \ |
| 1570 | pwd=`pwd`; \ |
| 1571 | wd=`basename $$pwd`; \ |
| 1572 | for j in `$(MAKE) ls`; \ |
| 1573 | do \ |
| 1574 | echo $$wd/$$j; \ |
| 1575 | done) \ |
| 1576 | done |
| 1577 | |
| 1578 | force: |
| 1579 | |
| 1580 | # with the gnu make, this is done automatically. |
| 1581 | |
| 1582 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) |
| 1583 | $(SHELL) ./config.status |
| 1584 | |
| 1585 | # |
| 1586 | # Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc |
| 1587 | |
| 1588 | DEVO_SUPPORT= README Makefile.in configure configure.in \ |
| 1589 | config.guess config.sub config move-if-change |
| 1590 | ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \ |
| 1591 | configure.texi |
| 1592 | GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim |
| 1593 | GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) |
| 1594 | |
| 1595 | setup-dirs: force |
| 1596 | ./configure sun4 |
| 1597 | $(MAKE) clean |
| 1598 | ./configure -rm sun4 |
| 1599 | chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print` |
| 1600 | |
| 1601 | gdb.tar.Z: setup-dirs |
| 1602 | (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir BISON="byacc") |
| 1603 | $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.Z |
| 1604 | |
| 1605 | make-gdb.tar.Z: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/texinfo.tex |
| 1606 | rm -rf proto-toplev; mkdir proto-toplev |
| 1607 | ln -s ../gdb/proto-gdb.dir proto-toplev/gdb |
| 1608 | (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \ |
| 1609 | ln -s ../$$i . ; \ |
| 1610 | done) |
| 1611 | mkdir proto-toplev/etc |
| 1612 | (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \ |
| 1613 | ln -s ../../etc/$$i . ; \ |
| 1614 | done) |
| 1615 | # Put only one copy (four hard links) of COPYING in the tar file. |
| 1616 | rm proto-toplev/bfd/COPYING |
| 1617 | ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING |
| 1618 | rm proto-toplev/include/COPYING |
| 1619 | ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING |
| 1620 | rm proto-toplev/readline/COPYING |
| 1621 | ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING |
| 1622 | |
| 1623 | # Take out texinfo and glob from configurable dirs |
| 1624 | rm proto-toplev/configure.in |
| 1625 | sed -e '/^host_tools=/s/texinfo //' \ |
| 1626 | -e '/^host_libs=/s/glob //' \ |
| 1627 | <configure.in >proto-toplev/configure.in |
| 1628 | |
| 1629 | # Take out texinfo from a few places; make simple BISON=bison line. |
| 1630 | rm proto-toplev/Makefile.in |
| 1631 | sed -e '/^all\.normal: /s/\all-texinfo //' \ |
| 1632 | -e '/^ install-texinfo /d' \ |
| 1633 | -e '\/^BISON =/,\/^$$/c\ |
| 1634 | BISON = bison -y' \ |
| 1635 | <Makefile.in >proto-toplev/Makefile.in |
| 1636 | |
| 1637 | mkdir proto-toplev/texinfo |
| 1638 | ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/ |
| 1639 | ln -s ../../texinfo/tex3patch proto-toplev/texinfo/ |
| 1640 | chmod og=u `find proto-toplev -print` |
| 1641 | (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \ |
| 1642 | echo "==> Making gdb-$$VER.tar.Z"; \ |
| 1643 | ln -s proto-toplev gdb-$$VER; \ |
| 1644 | tar cfh - gdb-$$VER \ |
| 1645 | | compress -v >gdb-$$VER.tar.Z) |
| 1646 | $(GZIP) -d <gdb-$$VER.tar.Z | $(GZIP) -9 -v >gdb-$$VER.tar.z |
| 1647 | |
| 1648 | # end of Makefile.in |