]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/gencmn/Makefile.in
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / tools / gencmn / Makefile.in
index 4f8538148fd76e670be89d06401efa196dd91b55..905c173f6fdd182a44388a524e569d166fcf1278 100644 (file)
@@ -1,5 +1,5 @@
 ## Makefile.in for ICU - tools/gencmn
-## Copyright (c) 1999-2003, International Business Machines Corporation and
+## Copyright (c) 1999-2004, International Business Machines Corporation and
 ## others. All Rights Reserved.
 ## Steven R. Loomis
 
@@ -16,18 +16,21 @@ subdir = tools/gencmn
 
 ##
 
+TARGET_STUB_NAME = gencmn
+DECMN_STUB_NAME = decmn
+
 SECTION = 8
 
-MANX_FILES = $(TARGET:$(EXEEXT)=).$(SECTION) $(DECMN:$(EXEEXT)=).$(SECTION)
+MANX_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DECMN_STUB_NAME).$(SECTION)
 
 ALL_MAN_FILES = $(MANX_FILES)
 
 ## Extra files to remove for 'make clean'
-CLEANFILES = *~ mkmap.tmp $(DEPS) $(RES_FILES) $(TEST_FILES) $(DECMN_DEP) $(ALL_MAN_FILES)
+CLEANFILES = *~ $(DEPS) $(DECMN_DEP) $(ALL_MAN_FILES)
 
 ## Target information
-TARGET = gencmn$(EXEEXT)
-DECMN = decmn$(EXEEXT)
+TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
+DECMN = $(BINDIR)/$(DECMN_STUB_NAME)$(EXEEXT)
 
 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
 LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
@@ -54,12 +57,12 @@ distclean : distclean-local
 dist: dist-local
 check: all check-local
 
-all-local: $(TARGET) $(RES_FILES) $(TRANSLIT_RES) $(TEST_FILES) $(DECMN) $(ALL_MAN_FILES)
+all-local: $(TARGET) $(DECMN) $(ALL_MAN_FILES)
 
 install-local: all-local install-man
        $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
-       $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
-       $(INSTALL) $(DECMN) $(DESTDIR)$(sbindir)/$(DECMN)
+       $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
+       $(INSTALL) $(DECMN) $(DESTDIR)$(sbindir)
 
 dist-local:
 
@@ -88,6 +91,9 @@ install-manx: $(MANX_FILES)
        $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
        $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
 
+# This line is needed to serialize builds when the gmake -j option is used.
+$(DECMN:$(EXEEXT)=).$(SECTION): $(TARGET:$(EXEEXT)=).$(SECTION)
+
 %.$(SECTION): $(srcdir)/%.$(SECTION).in
        cd $(top_builddir) \
         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
@@ -101,3 +107,4 @@ ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
 -include $(DECMN_DEP)
 endif
 endif
+