X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=intl%2FMakefile.in;h=db6d7d71876677a30538cb2dc69ecf0aff5c35b1;hb=e0d5dd36029529ff82d6bbe90ccb26e6c5fa4ad6;hp=7662781b345d77320a218aa5ecd5d23171e8223c;hpb=f923bf2a81e349f95310458651d7fe9a7291058b;p=tools%2Fe2fsprogs.git diff --git a/intl/Makefile.in b/intl/Makefile.in index 7662781..db6d7d7 100644 --- a/intl/Makefile.in +++ b/intl/Makefile.in @@ -28,6 +28,7 @@ VPATH = $(srcdir) prefix = @prefix@ exec_prefix = @exec_prefix@ +datarootdir = @datarootdir@ transform = @program_transform_name@ libdir = @libdir@ includedir = @includedir@ @@ -42,6 +43,42 @@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) +@SET_MAKE@ + +@ifGNUmake@ V = +@ifGNUmake@ ifeq ($(strip $(V)),) +@ifGNUmake@ # E = @echo +@ifGNUmake@ # Q = @ +@ifGNUmake@ E = @E@ +@ifGNUmake@ Q = @Q@ +@ifGNUmake@ else +@ifGNUmake@ E = @\# +@ifGNUmake@ Q = +@ifGNUmake@ endif + +@ifNotGNUmake@ E = @E@ +@ifNotGNUmake@ Q = @Q@ + +@ifGNUmake@ CHECK=sparse +@ifGNUmake@ CHECK_OPTS=-Wsparse-all -Wno-transparent-union -Wno-return-void -Wno-undef -Wno-non-pointer-null +@ifGNUmake@ CPPCHECK=cppcheck +@ifGNUmake@ CPPCHECK_OPTS=--force --enable=all --quiet --check-config +@ifGNUmake@ ifeq ("$(C)", "2") +@ifGNUmake@ CHECK_CMD=$(CHECK) $(CHECK_OPTS) -Wbitwise -D__CHECK_ENDIAN__ +@ifGNUmake@ CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS) +@ifGNUmake@ else +@ifGNUmake@ ifeq ("$(C)", "1") +@ifGNUmake@ CHECK_CMD=$(CHECK) $(CHECK_OPTS) +@ifGNUmake@ CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS) +@ifGNUmake@ else +@ifGNUmake@ CHECK_CMD=@true +@ifGNUmake@ CPPCHECK_CMD=@true +@ifGNUmake@ endif +@ifGNUmake@ endif + +@ifNotGNUmake@ CHECK_CMD=@true +@ifNotGNUmake@ CPPCHECK_CMD=@true + l = @INTL_LIBTOOL_SUFFIX_PREFIX@ AR = ar @@ -56,7 +93,7 @@ DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \ -Dset_relocation_prefix=libintl_set_relocation_prefix \ -Drelocate=libintl_relocate \ --DDEPENDS_ON_LIBICONV=1 @DEFS@ +-DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H CPPFLAGS = @CPPFLAGS@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ @@ -145,11 +182,11 @@ all-no-yes: libgnuintl.$la all-no-no: libintl.a libgnuintl.a: $(OBJECTS) - @rm -f $@ - @echo " AR $@" - @$(AR) cru $@ $(OBJECTS) - @echo " RANLIB $@" - @$(RANLIB) $@ + $(Q) rm -f $@ + $(E) " AR $@" + $(Q) $(AR) cru $@ $(OBJECTS) + $(E) " RANLIB $@" + $(Q) $(RANLIB) $@ libintl.la libgnuintl.la: $(OBJECTS) $(LIBTOOL) --mode=link \ @@ -172,8 +209,10 @@ LTV_AGE=4 .SUFFIXES: .c .y .o .lo .sin .sed .c.o: - @echo " CC $<" - @$(COMPILE) $< + $(E) " CC $<" + $(Q) $(COMPILE) $< + $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $< + $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $< .y.c: $(YACC) $(YFLAGS) --output $@ $< @@ -227,32 +266,32 @@ intl-compat.lo: $(srcdir)/intl-compat.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c ref-add.sed: $(srcdir)/ref-add.sin - @echo " SED ref-add.sed" - @sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed - @mv t-ref-add.sed ref-add.sed + $(E) " SED ref-add.sed" + $(Q) sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed + $(Q) mv t-ref-add.sed ref-add.sed ref-del.sed: $(srcdir)/ref-del.sin - @echo " SED ref-del.sed" - @sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed - @mv t-ref-del.sed ref-del.sed + $(E) " SED ref-del.sed" + $(Q) sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed + $(Q) mv t-ref-del.sed ref-del.sed -INCLUDES = -I. -I$(srcdir) -I.. +INCLUDES = -I. -I$(srcdir) -I.. -I$(top_builddir)/lib libgnuintl.h: $(srcdir)/libgnuintl.h.in - @echo " SED libgnuintl.h " - @sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ + $(E) " SED libgnuintl.h " + $(Q) sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ < $(srcdir)/libgnuintl.h.in > libgnuintl.h libintl.h: libgnuintl.h - @echo " CP libintl.h" - @cp libgnuintl.h libintl.h + $(E) " CP libintl.h" + $(Q) cp libgnuintl.h libintl.h charset.alias: $(srcdir)/config.charset - @echo " CONFIG.CHARSET $@" - @$(SHELL) $(srcdir)/config.charset '@host@' > t-$@ - @mv t-$@ $@ + $(E) " CONFIG.CHARSET $@" + $(Q) $(SHELL) $(srcdir)/config.charset '@host@' > t-$@ + $(Q) mv t-$@ $@ check: all @@ -263,7 +302,7 @@ check: all # package, you have to use `configure --with-included-gettext'. install: install-exec install-data install-exec: all - @if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ + $(Q) if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \ @@ -278,7 +317,7 @@ install-exec: all else \ : ; \ fi - @if test "$(PACKAGE)" = "gettext-tools" \ + $(Q) if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no; then \ $(mkinstalldirs) $(DESTDIR)$(libdir); \ $(LIBTOOL) --mode=install \ @@ -320,7 +359,7 @@ install-exec: all : ; \ fi install-data: all - @if test "$(PACKAGE)" = "gettext-tools"; then \ + $(Q) if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \ @@ -456,13 +495,14 @@ id: ID ID: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) +coverage.txt:: mostlyclean: rm -f *.a *.la *.o *.obj *.lo core core.* rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed rm -f -r .libs _libs -clean: mostlyclean +clean:: mostlyclean distclean: clean rm -f Makefile ID TAGS @@ -473,8 +513,8 @@ distclean: clean fi maintainer-clean: distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." + $(E) "This command is intended for maintainers to use;" + $(E) "it deletes files that may require special tools to rebuild." # GNU gettext needs not contain the file `VERSION' but contains some