fixed bash/dash/sh issue (Ubuntu)
[zpugcc/jano.git] / toolchain / dejagnu / Makefile.in
blob0a0ad97fc9ac0881164a067ce17ccca1bc0ef8fd
1 # Makefile.in generated by automake 1.7.6 from Makefile.am.
2 # @configure_input@
4 # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
5 # Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
15 @SET_MAKE@
17 # Process this file with automake to generate Makefile.in
19 srcdir = @srcdir@
20 top_srcdir = @top_srcdir@
21 VPATH = @srcdir@
22 pkgdatadir = $(datadir)/@PACKAGE@
23 pkglibdir = $(libdir)/@PACKAGE@
24 pkgincludedir = $(includedir)/@PACKAGE@
25 top_builddir = .
27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
28 INSTALL = @INSTALL@
29 install_sh_DATA = $(install_sh) -c -m 644
30 install_sh_PROGRAM = $(install_sh) -c
31 install_sh_SCRIPT = $(install_sh) -c
32 INSTALL_HEADER = $(INSTALL_DATA)
33 transform = $(program_transform_name)
34 NORMAL_INSTALL = :
35 PRE_INSTALL = :
36 POST_INSTALL = :
37 NORMAL_UNINSTALL = :
38 PRE_UNINSTALL = :
39 POST_UNINSTALL = :
40 ACLOCAL = @ACLOCAL@
41 AMDEP_FALSE = @AMDEP_FALSE@
42 AMDEP_TRUE = @AMDEP_TRUE@
43 AMTAR = @AMTAR@
44 AUTOCONF = @AUTOCONF@
45 AUTOHEADER = @AUTOHEADER@
46 AUTOMAKE = @AUTOMAKE@
47 AWK = @AWK@
48 BOARDS = @BOARDS@
49 CC = @CC@
50 CCDEPMODE = @CCDEPMODE@
51 CFLAGS = @CFLAGS@
52 CONFIG = @CONFIG@
53 CPPFLAGS = @CPPFLAGS@
54 CXX = @CXX@
55 CXXDEPMODE = @CXXDEPMODE@
56 CXXFLAGS = @CXXFLAGS@
57 CYGPATH_W = @CYGPATH_W@
58 DEFS = @DEFS@
59 DEPDIR = @DEPDIR@
60 DOCBOOK = @DOCBOOK@
61 ECHO_C = @ECHO_C@
62 ECHO_N = @ECHO_N@
63 ECHO_T = @ECHO_T@
64 EXEEXT = @EXEEXT@
65 INSTALL_DATA = @INSTALL_DATA@
66 INSTALL_PROGRAM = @INSTALL_PROGRAM@
67 INSTALL_SCRIPT = @INSTALL_SCRIPT@
68 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
69 LDFLAGS = @LDFLAGS@
70 LIBOBJS = @LIBOBJS@
71 LIBS = @LIBS@
72 LTLIBOBJS = @LTLIBOBJS@
73 MAINT = @MAINT@
74 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
75 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
76 MAKEINFO = @MAKEINFO@
77 OBJEXT = @OBJEXT@
78 PACKAGE = @PACKAGE@
79 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
80 PACKAGE_NAME = @PACKAGE_NAME@
81 PACKAGE_STRING = @PACKAGE_STRING@
82 PACKAGE_TARNAME = @PACKAGE_TARNAME@
83 PACKAGE_VERSION = @PACKAGE_VERSION@
84 PATH_SEPARATOR = @PATH_SEPARATOR@
85 SET_MAKE = @SET_MAKE@
86 SHELL = @SHELL@
87 STRIP = @STRIP@
88 TCLSH = @TCLSH@
89 VERSION = @VERSION@
90 YACC = @YACC@
91 ac_ct_CC = @ac_ct_CC@
92 ac_ct_CXX = @ac_ct_CXX@
93 ac_ct_STRIP = @ac_ct_STRIP@
94 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
95 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
96 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
97 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
98 am__include = @am__include@
99 am__leading_dot = @am__leading_dot@
100 am__quote = @am__quote@
101 bindir = @bindir@
102 build_alias = @build_alias@
103 datadir = @datadir@
104 exec_prefix = @exec_prefix@
105 host_alias = @host_alias@
106 includedir = @includedir@
107 infodir = @infodir@
108 install_sh = @install_sh@
109 libdir = @libdir@
111 # Install config.guess too, so we can use it to figure out what type
112 # of machine we're running on.
113 libexecdir = $(pkgdatadir)/libexec
114 localstatedir = @localstatedir@
115 mandir = @mandir@
116 oldincludedir = @oldincludedir@
117 prefix = @prefix@
118 program_transform_name = @program_transform_name@
119 sbindir = @sbindir@
120 sharedstatedir = @sharedstatedir@
121 subdirs = @subdirs@
122 sysconfdir = @sysconfdir@
123 target_alias = @target_alias@
124 tclsh = @tclsh@
126 AUTOMAKE_OPTIONS = dejagnu
128 # Install all the associated data files
129 SUBDIRS = doc # testsuite example
131 # Install the bourne shell script driver in the bindir
132 bin_SCRIPTS = runtest
134 # Install the main DejaGnu expect file in the datadir
135 pkgdata_SCRIPTS = runtest.exp
136 libexec_SCRIPTS = config.guess
138 DATE = `date "+%Y%m%d`
140 TLCSH = @TCLSH@
141 PKGDIR = /opt
143 RUNTESTDEFAULTFLAGS = --srcdir $(srcdir)/testsuite RUNTEST=$(RUNTEST)
144 RUNTEST = ` \
145 if [ -f ${srcdir}/runtest$(EXEEXT) ] ; then \
146 echo ${srcdir}/runtest$(EXEEXT); \
147 else echo "ERROR: runtest not found" ; exit 1; fi`
150 CLEANFILES = x.log x.sum site.bak setval.tmp
153 # Below, host-independent data files that need to get installed.
154 # We do it this way so we can use globbing.
155 lib_dest = $(DESTDIR)$(pkgdatadir)
156 lib_files = $(srcdir)/*.c $(srcdir)/lib/*.exp
158 baseboards_dest = $(DESTDIR)$(pkgdatadir)/baseboards
159 baseboards_files = $(srcdir)/baseboards/README $(srcdir)/baseboards/*.exp
161 include_dest = $(DESTDIR)$(includedir)
162 config_dest = $(DESTDIR)$(pkgdatadir)/config
163 config_files = $(srcdir)/config/README $(srcdir)/config/*.exp
164 subdir = .
165 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
166 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
167 CONFIG_CLEAN_FILES =
168 SCRIPTS = $(bin_SCRIPTS) $(libexec_SCRIPTS) $(pkgdata_SCRIPTS)
170 DIST_SOURCES =
172 RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
173 ps-recursive install-info-recursive uninstall-info-recursive \
174 all-recursive install-data-recursive install-exec-recursive \
175 installdirs-recursive install-recursive uninstall-recursive \
176 check-recursive installcheck-recursive
177 DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
178 Makefile.in NEWS TODO acinclude.m4 aclocal.m4 config.guess \
179 config.sub configure configure.in depcomp install-sh missing \
180 mkinstalldirs
181 DIST_SUBDIRS = $(SUBDIRS)
182 all: all-recursive
184 .SUFFIXES:
186 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
187 configure.lineno
188 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
189 cd $(top_srcdir) && \
190 $(AUTOMAKE) --gnu Makefile
191 Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
192 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
194 $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
195 $(SHELL) ./config.status --recheck
196 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
197 cd $(srcdir) && $(AUTOCONF)
199 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
200 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
201 binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
202 install-binSCRIPTS: $(bin_SCRIPTS)
203 @$(NORMAL_INSTALL)
204 $(mkinstalldirs) $(DESTDIR)$(bindir)
205 @list='$(bin_SCRIPTS)'; for p in $$list; do \
206 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
207 if test -f $$d$$p; then \
208 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
209 echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \
210 $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \
211 else :; fi; \
212 done
214 uninstall-binSCRIPTS:
215 @$(NORMAL_UNINSTALL)
216 @list='$(bin_SCRIPTS)'; for p in $$list; do \
217 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
218 echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
219 rm -f $(DESTDIR)$(bindir)/$$f; \
220 done
221 libexecSCRIPT_INSTALL = $(INSTALL_SCRIPT)
222 install-libexecSCRIPTS: $(libexec_SCRIPTS)
223 @$(NORMAL_INSTALL)
224 $(mkinstalldirs) $(DESTDIR)$(libexecdir)
225 @list='$(libexec_SCRIPTS)'; for p in $$list; do \
226 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
227 if test -f $$d$$p; then \
228 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
229 echo " $(libexecSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(libexecdir)/$$f"; \
230 $(libexecSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(libexecdir)/$$f; \
231 else :; fi; \
232 done
234 uninstall-libexecSCRIPTS:
235 @$(NORMAL_UNINSTALL)
236 @list='$(libexec_SCRIPTS)'; for p in $$list; do \
237 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
238 echo " rm -f $(DESTDIR)$(libexecdir)/$$f"; \
239 rm -f $(DESTDIR)$(libexecdir)/$$f; \
240 done
241 pkgdataSCRIPT_INSTALL = $(INSTALL_SCRIPT)
242 install-pkgdataSCRIPTS: $(pkgdata_SCRIPTS)
243 @$(NORMAL_INSTALL)
244 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
245 @list='$(pkgdata_SCRIPTS)'; for p in $$list; do \
246 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
247 if test -f $$d$$p; then \
248 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
249 echo " $(pkgdataSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f"; \
250 $(pkgdataSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f; \
251 else :; fi; \
252 done
254 uninstall-pkgdataSCRIPTS:
255 @$(NORMAL_UNINSTALL)
256 @list='$(pkgdata_SCRIPTS)'; for p in $$list; do \
257 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
258 echo " rm -f $(DESTDIR)$(pkgdatadir)/$$f"; \
259 rm -f $(DESTDIR)$(pkgdatadir)/$$f; \
260 done
261 uninstall-info-am:
263 # This directory's subdirectories are mostly independent; you can cd
264 # into them and run `make' without going through this Makefile.
265 # To change the values of `make' variables: instead of editing Makefiles,
266 # (1) if the variable is set in `config.status', edit `config.status'
267 # (which will cause the Makefiles to be regenerated when you run `make');
268 # (2) otherwise, pass the desired values on the `make' command line.
269 $(RECURSIVE_TARGETS):
270 @set fnord $$MAKEFLAGS; amf=$$2; \
271 dot_seen=no; \
272 target=`echo $@ | sed s/-recursive//`; \
273 list='$(SUBDIRS)'; for subdir in $$list; do \
274 echo "Making $$target in $$subdir"; \
275 if test "$$subdir" = "."; then \
276 dot_seen=yes; \
277 local_target="$$target-am"; \
278 else \
279 local_target="$$target"; \
280 fi; \
281 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
282 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
283 done; \
284 if test "$$dot_seen" = "no"; then \
285 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
286 fi; test -z "$$fail"
288 mostlyclean-recursive clean-recursive distclean-recursive \
289 maintainer-clean-recursive:
290 @set fnord $$MAKEFLAGS; amf=$$2; \
291 dot_seen=no; \
292 case "$@" in \
293 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
294 *) list='$(SUBDIRS)' ;; \
295 esac; \
296 rev=''; for subdir in $$list; do \
297 if test "$$subdir" = "."; then :; else \
298 rev="$$subdir $$rev"; \
299 fi; \
300 done; \
301 rev="$$rev ."; \
302 target=`echo $@ | sed s/-recursive//`; \
303 for subdir in $$rev; do \
304 echo "Making $$target in $$subdir"; \
305 if test "$$subdir" = "."; then \
306 local_target="$$target-am"; \
307 else \
308 local_target="$$target"; \
309 fi; \
310 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
311 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
312 done && test -z "$$fail"
313 tags-recursive:
314 list='$(SUBDIRS)'; for subdir in $$list; do \
315 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
316 done
317 ctags-recursive:
318 list='$(SUBDIRS)'; for subdir in $$list; do \
319 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
320 done
322 ETAGS = etags
323 ETAGSFLAGS =
325 CTAGS = ctags
326 CTAGSFLAGS =
328 tags: TAGS
330 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) ' { files[$$0] = 1; } \
336 END { for (i in files) print i; }'`; \
337 mkid -fID $$unique
339 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 if (etags --etags-include --version) >/dev/null 2>&1; then \
344 include_option=--etags-include; \
345 else \
346 include_option=--include; \
347 fi; \
348 list='$(SUBDIRS)'; for subdir in $$list; do \
349 if test "$$subdir" = .; then :; else \
350 test -f $$subdir/TAGS && \
351 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
352 fi; \
353 done; \
354 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
355 unique=`for i in $$list; do \
356 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
357 done | \
358 $(AWK) ' { files[$$0] = 1; } \
359 END { for (i in files) print i; }'`; \
360 test -z "$(ETAGS_ARGS)$$tags$$unique" \
361 || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
362 $$tags $$unique
364 ctags: CTAGS
365 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
366 $(TAGS_FILES) $(LISP)
367 tags=; \
368 here=`pwd`; \
369 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
370 unique=`for i in $$list; do \
371 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
372 done | \
373 $(AWK) ' { files[$$0] = 1; } \
374 END { for (i in files) print i; }'`; \
375 test -z "$(CTAGS_ARGS)$$tags$$unique" \
376 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
377 $$tags $$unique
379 GTAGS:
380 here=`$(am__cd) $(top_builddir) && pwd` \
381 && cd $(top_srcdir) \
382 && gtags -i $(GTAGS_ARGS) $$here
384 distclean-tags:
385 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
386 RUNTESTFLAGS =
387 DEJATOOL = $(PACKAGE)
388 EXPECT = expect
390 distclean-DEJAGNU:
391 -rm -f site.exp site.bak
392 -l='$(DEJATOOL)'; for tool in $$l; do \
393 rm -f $$tool.sum $$tool.log; \
394 done
395 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
397 top_distdir = .
398 distdir = $(PACKAGE)-$(VERSION)
400 am__remove_distdir = \
401 { test ! -d $(distdir) \
402 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
403 && rm -fr $(distdir); }; }
405 GZIP_ENV = --best
406 distuninstallcheck_listfiles = find . -type f -print
407 distcleancheck_listfiles = find . -type f -print
409 distdir: $(DISTFILES)
410 $(am__remove_distdir)
411 mkdir $(distdir)
412 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
413 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
414 list='$(DISTFILES)'; for file in $$list; do \
415 case $$file in \
416 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
417 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
418 esac; \
419 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
420 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
421 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
422 dir="/$$dir"; \
423 $(mkinstalldirs) "$(distdir)$$dir"; \
424 else \
425 dir=''; \
426 fi; \
427 if test -d $$d/$$file; then \
428 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
429 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
430 fi; \
431 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
432 else \
433 test -f $(distdir)/$$file \
434 || cp -p $$d/$$file $(distdir)/$$file \
435 || exit 1; \
436 fi; \
437 done
438 list='$(SUBDIRS)'; for subdir in $$list; do \
439 if test "$$subdir" = .; then :; else \
440 test -d $(distdir)/$$subdir \
441 || mkdir $(distdir)/$$subdir \
442 || exit 1; \
443 (cd $$subdir && \
444 $(MAKE) $(AM_MAKEFLAGS) \
445 top_distdir="$(top_distdir)" \
446 distdir=../$(distdir)/$$subdir \
447 distdir) \
448 || exit 1; \
449 fi; \
450 done
451 $(MAKE) $(AM_MAKEFLAGS) \
452 top_distdir="$(top_distdir)" distdir="$(distdir)" \
453 dist-hook
454 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
455 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
456 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
457 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
458 || chmod -R a+r $(distdir)
459 dist-gzip: distdir
460 $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
461 $(am__remove_distdir)
463 dist dist-all: distdir
464 $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
465 $(am__remove_distdir)
467 # This target untars the dist file and tries a VPATH configuration. Then
468 # it guarantees that the distribution is self-contained by making another
469 # tarfile.
470 distcheck: dist
471 $(am__remove_distdir)
472 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
473 chmod -R a-w $(distdir); chmod a+w $(distdir)
474 mkdir $(distdir)/_build
475 mkdir $(distdir)/_inst
476 chmod a-w $(distdir)
477 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
478 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
479 && cd $(distdir)/_build \
480 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
481 $(DISTCHECK_CONFIGURE_FLAGS) \
482 && $(MAKE) $(AM_MAKEFLAGS) \
483 && $(MAKE) $(AM_MAKEFLAGS) dvi \
484 && $(MAKE) $(AM_MAKEFLAGS) check \
485 && $(MAKE) $(AM_MAKEFLAGS) install \
486 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
487 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
488 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
489 distuninstallcheck \
490 && chmod -R a-w "$$dc_install_base" \
491 && ({ \
492 (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
493 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
494 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
495 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
496 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
497 } || { rm -rf "$$dc_destdir"; exit 1; }) \
498 && rm -rf "$$dc_destdir" \
499 && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
500 && rm -f $(distdir).tar.gz \
501 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
502 $(am__remove_distdir)
503 @echo "$(distdir).tar.gz is ready for distribution" | \
504 sed 'h;s/./=/g;p;x;p;x'
505 distuninstallcheck:
506 @cd $(distuninstallcheck_dir) \
507 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
508 || { echo "ERROR: files left after uninstall:" ; \
509 if test -n "$(DESTDIR)"; then \
510 echo " (check DESTDIR support)"; \
511 fi ; \
512 $(distuninstallcheck_listfiles) ; \
513 exit 1; } >&2
514 distcleancheck: distclean
515 @if test '$(srcdir)' = . ; then \
516 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
517 exit 1 ; \
519 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
520 || { echo "ERROR: files left in build directory after distclean:" ; \
521 $(distcleancheck_listfiles) ; \
522 exit 1; } >&2
523 check-am: all-am
524 $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
525 check: check-recursive
526 all-am: Makefile $(SCRIPTS)
527 installdirs: installdirs-recursive
528 installdirs-am:
529 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(libexecdir) $(DESTDIR)$(pkgdatadir)
531 install: install-recursive
532 install-exec: install-exec-recursive
533 install-data: install-data-recursive
534 uninstall: uninstall-recursive
536 install-am: all-am
537 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
539 installcheck: installcheck-recursive
540 install-strip:
541 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
542 INSTALL_STRIP_FLAG=-s \
543 `test -z '$(STRIP)' || \
544 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
545 mostlyclean-generic:
547 clean-generic:
548 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
550 distclean-generic:
551 -rm -f Makefile $(CONFIG_CLEAN_FILES)
553 maintainer-clean-generic:
554 @echo "This command is intended for maintainers to use"
555 @echo "it deletes files that may require special tools to rebuild."
556 clean: clean-recursive
558 clean-am: clean-generic clean-local mostlyclean-am
560 distclean: distclean-recursive
561 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
562 distclean-am: clean-am distclean-DEJAGNU distclean-generic \
563 distclean-tags
565 dvi: dvi-recursive
567 dvi-am:
569 info: info-recursive
571 info-am:
573 install-data-am: install-data-local install-pkgdataSCRIPTS
575 install-exec-am: install-binSCRIPTS install-libexecSCRIPTS
577 install-info: install-info-recursive
579 install-man:
581 installcheck-am:
583 maintainer-clean: maintainer-clean-recursive
584 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
585 -rm -rf $(top_srcdir)/autom4te.cache
586 maintainer-clean-am: distclean-am maintainer-clean-generic
588 mostlyclean: mostlyclean-recursive
590 mostlyclean-am: mostlyclean-generic
592 pdf: pdf-recursive
594 pdf-am:
596 ps: ps-recursive
598 ps-am:
600 uninstall-am: uninstall-binSCRIPTS uninstall-info-am \
601 uninstall-libexecSCRIPTS uninstall-local \
602 uninstall-pkgdataSCRIPTS
604 uninstall-info: uninstall-info-recursive
606 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-DEJAGNU \
607 check-am clean clean-generic clean-local clean-recursive ctags \
608 ctags-recursive dist dist-all dist-gzip distcheck distclean \
609 distclean-DEJAGNU distclean-generic distclean-recursive \
610 distclean-tags distcleancheck distdir distuninstallcheck dvi \
611 dvi-am dvi-recursive info info-am info-recursive install \
612 install-am install-binSCRIPTS install-data install-data-am \
613 install-data-local install-data-recursive install-exec \
614 install-exec-am install-exec-recursive install-info \
615 install-info-am install-info-recursive install-libexecSCRIPTS \
616 install-man install-pkgdataSCRIPTS install-recursive \
617 install-strip installcheck installcheck-am installdirs \
618 installdirs-am installdirs-recursive maintainer-clean \
619 maintainer-clean-generic maintainer-clean-recursive mostlyclean \
620 mostlyclean-generic mostlyclean-recursive pdf pdf-am \
621 pdf-recursive ps ps-am ps-recursive tags tags-recursive \
622 uninstall uninstall-am uninstall-binSCRIPTS uninstall-info-am \
623 uninstall-info-recursive uninstall-libexecSCRIPTS \
624 uninstall-local uninstall-pkgdataSCRIPTS uninstall-recursive
626 check-DEJAGNU:
627 cd testsuite ; $(MAKE) check
628 cd example ; $(MAKE) check
630 # Since we don't use SUBDIRS, we have to manually clean the
631 # subdirectories. We don't use SUBDIRS, so the example or test cases
632 # don't get built by default for a "make all".
633 clean-local:
634 cd doc ; $(MAKE) clean
635 cd testsuite ; $(MAKE) clean
636 cd example ; $(MAKE) clean
638 # Set ourselves up to build an RPM
639 tarball: book1.html overview.ps overview.pdf
640 -rm -fr dejagnu-${VERSION}
641 cp -fpPR $(srcdir) dejagnu-${VERSION}
642 src=$(srcdir); \
643 dir=`(cd $${src}; pwd)`; \
644 (cd dejagnu-${VERSION} ; $${dir}/Clean.tcl); \
645 cp -R $(srcdir)/doc/html dejagnu-${VERSION}/doc/; \
646 cp $(srcdir)/doc/overview.ps dejagnu-${VERSION}/doc/; \
647 cp $(srcdir)/doc/overview.pdf dejagnu-${VERSION}/doc/; \
648 cp $(srcdir)/doc/overview.rtf dejagnu-${VERSION}/doc/; \
649 tar cvf ../dejagnu-${VERSION}.tar dejagnu-${VERSION}; \
650 gzip -9fv ../dejagnu-${VERSION}.tar
652 rpmspec: $(srcdir)/packaging/rpm/dejagnu.spec
653 cp -f $(srcdir)/packaging/rpm/dejagnu.spec /usr/src/redhat/SPECS/
655 # Build an RPM package
656 rpm: tarball rpmspec
657 cp -f ../dejagnu-${VERSION}.tar.gz /usr/src/redhat/SOURCES/
658 rpm -ba /usr/src/redhat/SPECS/dejagnu.spec
660 # Build a Debian deb package
661 deb: book1.html overview.ps overview.pdf
662 -rm -fr dejagnu-${VERSION}
663 cp -fpr $(srcdir) dejagnu-${VERSION}
664 @echo "clean up stuff we don't want in the source file"
665 src=$(srcdir); \
666 dir=`(cd $${src}; pwd)`; \
667 (cd dejagnu-${VERSION} ; $${dir}/Clean.tcl);
668 -mkdir -p doc/html;
669 -cp -fr $(srcdir)/packaging/deb dejagnu-${VERSION}/
670 -cp -fr doc/html dejagnu-${VERSION}/doc/;
671 -cp -fr doc/overview.ps dejagnu-${VERSION}/doc/;
672 -cp -fr doc/overview.pdf dejagnu-${VERSION}/doc/;
673 -cp -fr doc/overview.rtf dejagnu-${VERSION}/doc/;
674 (cd dejagnu-${VERSION}; dpkg-buildpackage)
676 # Build a Solaris package
677 solpkg: $(srcdir)/packaging/pkg/prototype
678 if test ! -d $(PKGDIR)/dejagnu; then \
679 rm -fr dejagnu-${VERSION}; \
680 mkdir dejagnu-${VERSION}; \
681 cd dejagnu-${VERSION}; \
682 $(srcdir)/configure -v --prefix $(PKGDIR)/dejagnu; \
683 make install ; \
685 cp $(srcdir)/packaging/pkg/prototype /tmp
686 cp $(srcdir)/packaging/pkg/pkginfo /tmp
687 here=`pwd`; \
688 cd /tmp; \
689 pkgmk -o -r / -d /tmp; \
690 tar cf $$here/dejagnu-${VERSION}.SPARC.2.8.pkg.tar DejaGnu; \
691 gzip -9fv $$here/dejagnu-${VERSION}.SPARC.2.8.pkg.tar
692 rm -fr /tmp/prototype /tmp/pkginfo /tmp/DejaGnu
694 # Build a HP depot package
695 hpdepot: # $(srcdir)/packaging/depot/dejagnu.psf
696 if test ! -d $(PKGDIR)/dejagnu; then \
697 rm -fr dejagnu-${VERSION}; \
698 mkdir dejagnu-${VERSION}; \
699 cd dejagnu-${VERSION}; \
700 $(srcdir)/configure -v --prefix $(PKGDIR)/dejagnu; \
701 make install ; \
703 swpackage -s $(srcdir)/packaging/depot/dejagnu.psf -x target_type=directory -d /tmp
704 here=`pwd`; \
705 cd /tmp; \
706 tar cf $$here/dejagnu-${VERSION}.hpux11.depot dejagnu; \
707 gzip -9fv $$here/dejagnu-${VERSION}.hpux11.depot; \
708 rm -fr /tmp/dejagnu
710 book1.html overview.ps overview.pdf install-doc:
711 cd doc && $(MAKE) $(FLAGS_TO_PASS) $@
713 # Automake sucks when it comes to building a distribution, so
714 # we just copy the source tree onto of what Automake did, and
715 # then we Clean it. Automake only includes the source files.
716 # We want all the testsuites, data files, and html versions of the doc.
717 dist-hook: rpmspec book1.html overview.ps overview.pdf
718 -rm -fr $(distdir)
719 cp -fpr $(srcdir) $(distdir)
720 (cd $(distdir) ; $(TCLSH) $(srcdir)/Clean.tcl)
721 -cp -fr doc/html $(distdir)/doc/
722 -cp -fr doc/overview.ps $(distdir)/doc/
723 -cp -fr doc/overview.pdf $(distdir)/doc/
725 install-data-local:
726 $(mkinstalldirs) $(lib_dest) $(include_dest)
727 for f in $(lib_files); do \
728 test ! -f "$$f" || $(INSTALL_DATA) $$f $(lib_dest); \
729 done
730 $(mkinstalldirs) $(baseboards_dest)
731 for f in $(baseboards_files); do \
732 test ! -f "$$f" || $(INSTALL_DATA) $$f $(baseboards_dest); \
733 done
734 $(INSTALL_DATA) $(srcdir)/dejagnu.h $(include_dest); \
735 $(mkinstalldirs) $(config_dest)
736 for f in $(config_files); do \
737 test ! -f "$$f" || $(INSTALL_DATA) $$f $(config_dest); \
738 done
740 uninstall-local:
741 for f in $(lib_files); do \
742 test ! -f "$$f" || rm -f $(lib_dest)/`basename "$$f"`; \
743 done
744 for f in $(config_files); do \
745 test ! -f "$$f" || rm -f $(config_dest)/`basename "$$f"`; \
746 done
747 for f in $(baseboards_files); do \
748 test ! -f "$$f" || rm -f $(baseboards_dest)/`basename "$$f"`; \
749 done
751 for f in $(baseboards_files); do \
752 test ! -f "$$f" || rm -f $(baseboards_dest)/`basename "$$f"`; \
753 done
754 rm -f $(include_dest)/dejagnu.h;
756 site.exp: Makefile
757 @echo 'Making a new site.exp file...'
758 @test ! -f site.bak || rm -f site.bak
759 @echo '## these variables are automatically generated by make ##' > $@-t
760 @echo '# Do not edit here. If you wish to override these values' >> $-t
761 @echo '# edit the last section' >> $@-t
762 @echo 'set srcdir $(srcdir)' >> $@-t
763 @echo 'set objdir' `pwd` >> $@-t
764 @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
765 @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
766 @test ! -f site.exp || mv site.exp site.bak
767 @mv $@-t site.exp
768 # Tell versions [3.59,3.63) of GNU make to not export all variables.
769 # Otherwise a system limit (for SysV at least) may be exceeded.
770 .NOEXPORT: