Home | History | Annotate | Download | only in samples
      1 ## Makefile.in for ICU samples
      2 ## Copyright (c) 1999-2010, International Business Machines Corporation and
      3 ## others. All Rights Reserved.
      4 
      5 ## Install 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 = samples
     15 
     16 ## Platform-specific setup
     17 include @platform_make_fragment@
     18 
     19 ## Files to remove for 'make clean'
     20 CLEANFILES = *~
     21 
     22 SUBDIRS = date cal
     23 ALLSUBDIRS = break case csdet datefmt msgfmt numfmt props translit ucnv udata ufortune uresb ustring citer uciter8 ugrep
     24 
     25 ## List of phony targets
     26 .PHONY : all all-local all-recursive install install-local		\
     27 install-recursive clean clean-local clean-recursive distclean		\
     28 distclean-local distclean-recursive dist dist-recursive dist-local	\
     29 check check-recursive check-local
     30 
     31 ## Clear suffix list
     32 .SUFFIXES :
     33 
     34 ## List of standard targets
     35 all: all-recursive all-local
     36 install: install-recursive install-local
     37 clean: clean-recursive clean-local
     38 distclean : distclean-recursive distclean-local
     39 dist: dist-recursive dist-local
     40 
     41 all-samples: all-samples-recursive
     42 clean-samples: clean-samples-recursive
     43 check-samples: check-samples-recursive
     44 
     45 # Note (srl 4/15/2002) do  NOT recursively check samples for 2.1, look into testing them in the future.
     46 #check: all check-recursive check-local
     47 check: all check-local
     48 
     49 
     50 ## Recursive targets
     51 all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive:
     52 	@dot_seen=no; \
     53 	target=`echo $@ | sed s/-recursive//`; \
     54 	list='$(SUBDIRS)'; for subdir in $$list; do \
     55 	  echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
     56 	  if test "$$subdir" = "."; then \
     57 	    dot_seen=yes; \
     58 	    local_target="$$target-local"; \
     59 	  else \
     60 	    local_target="$$target"; \
     61 	  fi; \
     62 	  (cd $$subdir && $(MAKE) $$local_target) || exit; \
     63 	done; \
     64 	if test "$$dot_seen" = "no"; then \
     65 	  $(MAKE) "$$target-local" || exit; \
     66 	fi
     67 
     68 all-samples-recursive check-samples-recursive clean-samples-recursive:
     69 	@dot_seen=no; \
     70 	target=`echo $@ | sed s/-recursive//`; \
     71 	subtarget=`echo $@ | sed s/-samples-recursive//`; \
     72 	list='$(SUBDIRS) $(ALLSUBDIRS)'; for subdir in $$list; do \
     73 	  echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$subtarget' in \`$$subdir'"; \
     74 	  if test "$$subdir" = "."; then \
     75 	    dot_seen=yes; \
     76 	    local_target="$$subtarget-local"; \
     77 	  else \
     78 	    local_target="$$subtarget"; \
     79 	  fi; \
     80 	  (cd $$subdir && $(MAKE) $$local_target) || exit; \
     81 	done; \
     82 	if test "$$dot_seen" = "no"; then \
     83 	  $(MAKE) "$$subtarget-local" || exit; \
     84 	fi
     85 
     86 
     87 all-local:
     88 
     89 install-local:
     90 
     91 dist-local:
     92 
     93 clean-local:
     94 	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
     95 
     96 check-local:
     97 
     98 distclean-local: clean-local
     99 	$(RMV) Makefile
    100 
    101 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
    102 	cd $(top_builddir) \
    103 	&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
    104