scuffed-code/icu4c/source/tools/pkgdata/Makefile.in

103 lines
2.2 KiB
Makefile
Raw Normal View History

2000-06-14 00:50:58 +00:00
## Makefile.in for ICU - tools/pkgdata
## Copyright (c) 1999-2009, International Business Machines Corporation and
2000-06-14 00:50:58 +00:00
## others. All Rights Reserved.
## Steven R. Loomis
## Source directory information
2000-06-14 00:50:58 +00:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ../..
include $(top_builddir)/icudefs.mk
2000-06-14 00:50:58 +00:00
## Build directory information
subdir = tools/pkgdata
TARGET_STUB_NAME = pkgdata
SECTION = 1
MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
2000-06-14 00:50:58 +00:00
## Extra files to remove for 'make clean'
CLEANFILES = *~ $(DEPS) $(MAN_FILES)
2000-06-14 00:50:58 +00:00
ifneq ($(PKGDATA_DEFS),)
DEFS += $(PKGDATA_DEFS)
endif
2000-06-14 00:50:58 +00:00
## Target information
TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2000-06-14 00:50:58 +00:00
ifneq ($(top_builddir),$(top_srcdir))
CPPFLAGS += -I$(top_builddir)/common
endif
CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil
DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\"
LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
2000-06-14 00:50:58 +00:00
OBJECTS = pkgdata.o pkgtypes.o
2000-06-14 00:50:58 +00:00
DEPS = $(OBJECTS:.o=.d)
## List of phony targets
.PHONY : all all-local install install-local clean clean-local \
distclean distclean-local dist dist-local check check-local install-man
2000-06-14 00:50:58 +00:00
## Clear suffix list
.SUFFIXES :
## List of standard targets
all: all-local
install: install-local
clean: clean-local
distclean : distclean-local
dist: dist-local
check: all check-local
2000-06-14 00:50:58 +00:00
all-local: $(TARGET) $(MAN_FILES)
2000-06-14 00:50:58 +00:00
install-local: all-local install-man
$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
$(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
2000-06-14 00:50:58 +00:00
install-man: $(MAN_FILES)
$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
2000-06-14 00:50:58 +00:00
dist-local:
clean-local:
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
$(RMV) $(TARGET) $(OBJECTS)
distclean-local: clean-local
$(RMV) Makefile
2000-06-14 00:50:58 +00:00
check-local: all-local
2000-06-14 00:50:58 +00:00
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
$(TARGET) : $(OBJECTS)
$(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
$(POST_BUILD_STEP)
%.$(SECTION): $(srcdir)/%.$(SECTION).in
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2000-06-14 00:50:58 +00:00
ifeq (,$(MAKECMDGOALS))
-include $(DEPS)
else
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
-include $(DEPS)
endif
endif