(linenum→info "unix/slp.c:2238")

hello/2.3/Makefile.am

    1: # Process this file with automake to produce Makefile.in (in this,
    2: # and all subdirectories).
    3: #
    4: # Makefile for the top-level directory of GNU hello.
    5: # Copyright (C) 1997, 1998, 2005, 2006, 2007 Free Software Foundation, Inc.
    6: #
    7: # This program is free software; you can redistribute it and/or modify
    8: # it under the terms of the GNU General Public License as published by
    9: # the Free Software Foundation; either version 3, or (at your option)
   10: # any later version.
   11: #
   12: # This program is distributed in the hope that it will be useful,
   13: # but WITHOUT ANY WARRANTY; without even the implied warranty of
   14: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   15: # GNU General Public License for more details.
   16: #
   17: # You should have received a copy of the GNU General Public License
   18: # along with this program; if not, write to the Free Software Foundation,
   19: # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   20: 
   21: # Find gnulib headers.
   22: ACLOCAL_AMFLAGS = -I gnulib/m4
   23: 
   24: # Additional files to distribute.
   25: EXTRA_DIST = ChangeLog.O
   26: 
   27: # Subdirectories to descend into.
   28: SUBDIRS = contrib gnulib/lib po src doc man tests
   29: 
   30: # `make diff' produces a diff against the previous version, given both
   31: # .tar.gz's in the current directory.  This should only be done when an
   32: # official release is made (and only if you care to provide diffs).
   33: #
   34: hello_pre = 2.1.1
   35: #
   36: diff: diffcheck
   37:         @(echo "To apply these patches, cd to the main directory of the package"; \
   38:           echo "and then use \`patch -p1 < hello-XXX.diff'."; \
   39:           echo "Before building the program, run \`autogen.sh'."; ) > \
   40:             $(PACKAGE)-$(hello_pre)-$(VERSION).diff
   41:         -diff -rc2P --exclude=configure --exclude=config.h.in --exclude=*.info \
   42:             --exclude=*.gmo --exclude=aclocal.m4 \
   43:             $(PACKAGE)-$(hello_pre) $(PACKAGE)-$(VERSION) >> \
   44:             $(PACKAGE)-$(hello_pre)-$(VERSION).diff
   45:         gzip --force --best $(PACKAGE)-$(hello_pre)-$(VERSION).diff
   46: 
   47: diffcheck:
   48:         for d in $(PACKAGE)-$(hello_pre) $(PACKAGE)-$(VERSION) ; do \
   49:             if test ! -d $$d ; then \
   50:                 if test -r $$d.tar.gz ; then \
   51:                     tar -zxf $$d.tar.gz ; \
   52:                 else \
   53:                     echo subdir $$d does not exist. ; \
   54:                     exit 1 ; \
   55:                 fi ; \
   56:             fi ; \
   57:         done
   58: 
   59: # From coreutils.
   60: # Verify that all source files using _() are listed in po/POTFILES.in.
   61: # The idea is to run this before making pretests, as well as official
   62: # releases, so that 
   63: po-check:
   64:         if test -f po/POTFILES.in; then                                        \
   65:           grep -E -v '^(#|$$)' po/POTFILES.in                          \
   66:             | grep -v '^src/false\.c$$' | sort > $@-1;                 \
   67:           files=;                                                      \
   68:           for file in $$($(CVS_LIST_EXCEPT)) `find * -name '*.[ch]'`; do \
   69:             case $$file in                                             \
   70:             djgpp/* | man/*) continue;;                                        \
   71:             esac;                                                      \
   72:             case $$file in                                             \
   73:             *.[ch])                                                    \
   74:               base=`expr " $$file" : ' \(.*\)\..'`;                    \
   75:               { test -f $$base.l || test -f $$base.y; } && continue;;  \
   76:             esac;                                                      \
   77:             files="$$files $$file";                                    \
   78:           done;                                                                \
   79:           grep -E -l '\b(N?_|gettext *)\([^)"]*("|$$)' $$files         \
   80:             | sort -u > $@-2;                                          \
   81:           diff -u $@-1 $@-2 || exit 1;                                 \
   82:           rm -f $@-1 $@-2;                                             \
   83:         fi
Syntax (Markdown)