1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22: ACLOCAL_AMFLAGS = -I gnulib/m4
23:
24:
25: EXTRA_DIST = ChangeLog.O
26:
27:
28: SUBDIRS = contrib gnulib/lib po src doc man tests
29:
30:
31:
32:
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:
60:
61:
62:
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