Home | History | Annotate | Download | only in test
      1 ## Makefile.in for ICU tests
      2 ## Copyright (c) 1999-2008, International Business Machines Corporation and
      3 ## others. All Rights Reserved.
      4 
      5 ## Source directory information
      6 srcdir = @srcdir@
      7 top_srcdir = @top_srcdir@
      8 
      9 top_builddir = ..
     10 
     11 include $(top_builddir)/icudefs.mk
     12 
     13 ## Build directory information
     14 subdir = test
     15 
     16 @ICUIO_TRUE@IOTEST = iotest
     17 
     18 ## Files to remove for 'make clean'
     19 CLEANFILES = *~
     20 
     21 SUBDIRS = testdata intltest $(IOTEST) cintltst
     22 
     23 ## List of phony targets
     24 .PHONY : everything all all-local all-recursive install install-local		\
     25 install-recursive clean clean-local clean-recursive distclean		\
     26 distclean-local distclean-recursive dist dist-recursive dist-local	\
     27 check check-recursive check-local
     28 
     29 ## Clear suffix list
     30 .SUFFIXES :
     31 
     32 ## List of standard targets
     33 everything: all-recursive all-local
     34 all:
     35 ifneq ($(RECURSIVE),YES)
     36 	@echo simply use \`make\' \(or \`make everything\'\) to do all
     37 endif
     38 
     39 install: install-recursive install-local
     40 clean: clean-recursive clean-local
     41 distclean : distclean-recursive distclean-local
     42 	$(RMV) hdrtst/Makefile
     43 	$(RMV) perf/convperf/Makefile
     44 
     45 dist: dist-recursive dist-local
     46 check: everything check-recursive check-local
     47 check-recursive: all-recursive
     48 
     49 ## Recursive targets
     50 all-recursive install-recursive clean-recursive distclean-recursive dist-recursive:
     51 	@dot_seen=no; \
     52 	target=`echo $@ | sed s/-recursive//`; \
     53 	list='$(SUBDIRS)'; for subdir in $$list; do \
     54 	  echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
     55 	  if test "$$subdir" = "."; then \
     56 	    dot_seen=yes; \
     57 	    local_target="$$target-local"; \
     58 	  else \
     59 	    local_target="$$target"; \
     60 	  fi; \
     61 	  (cd $$subdir && $(MAKE) $$local_target) || exit; \
     62 	done; \
     63 	if test "$$dot_seen" = "no"; then \
     64 	  $(MAKE) "$$target-local" || exit; \
     65 	fi
     66 
     67 check-recursive:
     68 	@goods=; \
     69 	bads=; \
     70 	target=`echo $@ | sed s/-recursive//`; \
     71 	list='$(SUBDIRS)'; for subdir in $$list; do \
     72 	  echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
     73 	  local_target="$$target"; \
     74 	  if (cd $$subdir && $(MAKE) $$local_target); then \
     75 	    goods="$$goods $$subdir"; \
     76           else \
     77             bads="$$bads $$subdir"; \
     78           fi; \
     79 	done; \
     80 	echo "---------------"; \
     81 	echo "ALL TESTS SUMMARY:"; \
     82         if test ! "x$$bads" = "x"; then \
     83 	  echo "ok: $$goods"; \
     84 	  echo "===== ERRS: $$bads"; exit 1; \
     85 	else \
     86 	  echo "All tests OK: $$goods"; \
     87 	fi
     88 
     89 all-local:
     90 
     91 install-local:
     92 
     93 dist-local:
     94 
     95 clean-local:
     96 	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
     97 
     98 distclean-local: clean-local
     99 	$(RMV) Makefile
    100 
    101 check-local: all-local
    102 
    103 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
    104 	cd $(top_builddir) \
    105 	&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
    106 
    107