X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=725ee506240365b4764d1bb2ae7a17fa11f5e838;hb=refs%2Fheads%2Fspv3;hp=803ad08e2a01473ebb5db1ac4af6d0f727450859;hpb=78bc244668060f41a9363423c3a0fa44ceeb4555;p=pspp diff --git a/Makefile.am b/Makefile.am index 803ad08e2a..725ee50624 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 = @@ -28,7 +30,7 @@ all_q_sources = pkgsysconfdir = $(sysconfdir)/$(PACKAGE) -EXTRA_DIST = OChangeLog ONEWS pspp-mode.el +EXTRA_DIST = ONEWS pspp-mode.el CLEANFILES = CLEAN_LOCAL = @@ -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 @@ -116,9 +117,9 @@ ALL_LOCAL += dist-hook-git dist-hook-git: distfiles @if test -e $(srcdir)/.git && (git --version) >/dev/null 2>&1; then \ (cd $(srcdir) && git ls-files) \ - | grep -vE '\.gitignore|README.Git|Smake' \ - | sort -u > gitfiles; \ - comm -1 -3 distfiles gitfiles > missing-distfiles; \ + | grep -vE '\.gitignore|README.Git|Smake|Bug-administration' \ + | LC_ALL=C sort -u > gitfiles; \ + LC_ALL=C comm -1 -3 distfiles gitfiles > missing-distfiles; \ if test -s missing-distfiles; then \ echo "The distribution is missing the following files:"; \ cat missing-distfiles; \ @@ -127,11 +128,12 @@ 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" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" | sort -u > $@ + $(SED) -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" \ + | LC_ALL=C sort -u > $@ CLEANFILES += distfiles gitfiles missing-distfiles .PHONY: dist-hook-git