1999-08-16 21:50:52 +00:00
|
|
|
## Makefile.in for ICU samples
|
2003-12-19 22:18:26 +00:00
|
|
|
## Copyright (c) 1999-2003, International Business Machines Corporation and
|
2000-01-17 19:48:20 +00:00
|
|
|
## others. All Rights Reserved.
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Install directory information
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
2000-10-26 19:28:33 +00:00
|
|
|
top_builddir = ..
|
|
|
|
|
|
|
|
include $(top_builddir)/icudefs.mk
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
subdir = samples
|
|
|
|
|
2000-05-15 22:32:11 +00:00
|
|
|
## Platform-specific setup
|
2000-10-24 19:50:20 +00:00
|
|
|
include @platform_make_fragment@
|
2000-05-15 22:32:11 +00:00
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
## Files to remove for 'make clean'
|
|
|
|
CLEANFILES = *~
|
|
|
|
|
2000-12-04 20:55:25 +00:00
|
|
|
SUBDIRS = date cal
|
2003-06-19 22:25:24 +00:00
|
|
|
ALLSUBDIRS = break case datefmt msgfmt numfmt props translit ucnv udata ufortune uresb ustring citer
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## List of phony targets
|
|
|
|
.PHONY : all all-local all-recursive install install-local \
|
|
|
|
install-recursive clean clean-local clean-recursive distclean \
|
|
|
|
distclean-local distclean-recursive dist dist-recursive dist-local \
|
|
|
|
check check-recursive check-local
|
|
|
|
|
|
|
|
## Clear suffix list
|
|
|
|
.SUFFIXES :
|
|
|
|
|
|
|
|
## List of standard targets
|
|
|
|
all: all-recursive all-local
|
|
|
|
install: install-recursive install-local
|
|
|
|
clean: clean-recursive clean-local
|
|
|
|
distclean : distclean-recursive distclean-local
|
|
|
|
dist: dist-recursive dist-local
|
2002-04-15 23:31:05 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
all-samples: all-samples-recursive
|
|
|
|
clean-samples: clean-samples-recursive
|
|
|
|
check-samples: check-samples-recursive
|
|
|
|
|
2002-04-15 23:31:05 +00:00
|
|
|
# Note (srl 4/15/2002) do NOT recursively check samples for 2.1, look into testing them in the future.
|
|
|
|
#check: all check-recursive check-local
|
|
|
|
check: all check-local
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Recursive targets
|
|
|
|
all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive:
|
|
|
|
@dot_seen=no; \
|
|
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
|
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
2002-01-04 23:48:46 +00:00
|
|
|
echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$target' in \`$$subdir'"; \
|
1999-08-16 21:50:52 +00:00
|
|
|
if test "$$subdir" = "."; then \
|
|
|
|
dot_seen=yes; \
|
|
|
|
local_target="$$target-local"; \
|
|
|
|
else \
|
|
|
|
local_target="$$target"; \
|
|
|
|
fi; \
|
2000-02-04 22:34:43 +00:00
|
|
|
(cd $$subdir && $(MAKE) $$local_target) || exit; \
|
1999-08-16 21:50:52 +00:00
|
|
|
done; \
|
|
|
|
if test "$$dot_seen" = "no"; then \
|
2000-08-11 22:08:11 +00:00
|
|
|
$(MAKE) "$$target-local" || exit; \
|
1999-08-16 21:50:52 +00:00
|
|
|
fi
|
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
all-samples-recursive check-samples-recursive clean-samples-recursive:
|
|
|
|
@dot_seen=no; \
|
|
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
|
|
subtarget=`echo $@ | sed s/-samples-recursive//`; \
|
|
|
|
list='$(SUBDIRS) $(ALLSUBDIRS)'; for subdir in $$list; do \
|
|
|
|
echo "$(MAKE)[$(MAKELEVEL)]: Making \`$$subtarget' in \`$$subdir'"; \
|
|
|
|
if test "$$subdir" = "."; then \
|
|
|
|
dot_seen=yes; \
|
|
|
|
local_target="$$subtarget-local"; \
|
|
|
|
else \
|
|
|
|
local_target="$$subtarget"; \
|
|
|
|
fi; \
|
|
|
|
(cd $$subdir && $(MAKE) $$local_target) || exit; \
|
|
|
|
done; \
|
|
|
|
if test "$$dot_seen" = "no"; then \
|
|
|
|
$(MAKE) "$$subtarget-local" || exit; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
all-local:
|
|
|
|
|
|
|
|
install-local:
|
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
2000-05-15 22:32:11 +00:00
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
check-local:
|
|
|
|
|
2000-04-10 23:24:53 +00:00
|
|
|
distclean-local: clean-local
|
2000-05-15 22:32:11 +00:00
|
|
|
$(RMV) Makefile
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|