X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=1b861fb2a55494861c322fb741912d4da9e2f434;hb=refs%2Fheads%2Fspv2;hp=9b1ef044d2a714dc305e96ced3cf4aa9b9d7ea2d;hpb=8d6ff8a6bd25b184474a117c8332275b5add2d2b;p=pspp diff --git a/Makefile.am b/Makefile.am index 9b1ef044d2..1b861fb2a5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,6 +11,8 @@ AM_CPPFLAGS = \ -I$(top_builddir)/gl \ -DINSTALLDIR=\"$(bindir)\" +AM_V_P ?= : + AM_CFLAGS= if cc_is_gcc @@ -20,7 +22,7 @@ endif .q.c: @$(MKDIR_P) `dirname $@` - ./src/language/lexer/q2c$(EXEEXT_FOR_BUILD) $< $@ + $(AM_V_GEN)./src/language/lexer/q2c$(EXEEXT_FOR_BUILD) $< $@ $(all_q_sources:.q=.c): src/language/lexer/q2c$(EXEEXT_FOR_BUILD) all_q_sources = @@ -56,8 +58,8 @@ noinst_HEADERS = $(EXTRA_DIST) generate-changelog: if test -d $(top_srcdir)/.git; then \ - $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-07-27 \ - > $(distdir)/cl-t; \ + $(top_srcdir)/build-aux/gitlog-to-changelog --since=2008-07-27 --srcdir=$(top_srcdir) \ + > $(distdir)/cl-t || exit 1; \ rm -f $(distdir)/ChangeLog; \ mv $(distdir)/cl-t $(distdir)/ChangeLog; \ fi @@ -72,7 +74,6 @@ include $(top_srcdir)/doc/automake.mk include $(top_srcdir)/examples/automake.mk include $(top_srcdir)/src/automake.mk include $(top_srcdir)/utilities/automake.mk - include $(top_srcdir)/tests/automake.mk if WITH_GUI_TOOLS @@ -127,11 +128,11 @@ dist-hook-git: distfiles fi # The following is based on commands for the Automake "distdir" target. distfiles: Makefile - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + @srcdirstrip=`echo "$(srcdir)" | $(SED) 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | $(SED) 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ + $(SED) -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" \ | LC_ALL=C sort -u > $@ CLEANFILES += distfiles gitfiles missing-distfiles