Omitted src/version.c from po/POTFILES.in, since it's a generated file and contains no
[pspp-builds.git] / Smake
1 Makefile po/Makefile.in: Makefile.in configure install-sh config.h.in po/Makefile.in.in po/POTFILES.in
2         ./configure
3
4 configure:  configure.ac aclocal.m4
5         autoconf
6
7 config.h.in: configure.ac
8         autoheader
9
10 aclocal.m4:
11         aclocal -I m4
12
13 # We want all src/*.c files which do not have corresponding src/*.q
14
15 src_q_files=$(wildcard src/*.q)
16 src_c_files=$(wildcard src/*.c)
17 src_cq_files=$(patsubst %.q, %.c, $(src_q_files))
18 src_files=$(filter-out $(src_cq_files), $(src_c_files)) $(src_q_files)
19
20
21 .PHONY: po/POTFILES.in
22 po/POTFILES.in: 
23         @$(RM) po/potfile-temp
24         for f in $(src_files) ; do \
25         if [ $$f = "src/version.c" ] ; then continue ; fi ; \
26         echo $$f >> po/potfile-temp ; done
27         @if ( ! test -e $@ ) || ( ! diff  -q po/potfile-temp $@ ) ; then  mv po/potfile-temp $@ ; else $(RM) po/potfile-temp ; fi
28
29 install-sh Makefile.in: intl Makefile.am aclocal.m4 config.h.in ABOUT-NLS
30         automake --add-missing
31
32 po/Makefile.in.in intl ABOUT-NLS:
33         touch -f Makefile.am Makefile.am-stamp
34         touch -f configure.ac configure.ac-stamp
35         cp -pR configure.ac configure.ac-bak
36         cp -pR Makefile.am Makefile.am-bak
37         gettextize -f -c --no-changelog --intl
38         cp -pR Makefile.am-bak Makefile.am
39         touch -f Makefile.am-stamp Makefile.am
40         cp -pR configure.ac-bak configure.ac
41         touch -f configure.ac-stamp configure.ac
42         $(RM) configure.ac-bak configure.ac-stamp
43         $(RM) Makefile.am-bak Makefile.am-stamp
44
45
46
47 .PHONY: clean
48 clean:
49         $(RM) config.sub config.guess
50         $(RM) ABOUT-NLS
51         $(RM) -r autom4te.cache
52         $(RM) aclocal.m4
53         $(RM) missing mkinstalldirs
54         $(RM) install-sh
55         $(RM) configure Makefile Makefile.in
56         $(RM) depcomp
57         $(RM) -r m4 intl
58         $(RM) po/ChangeLog \
59         po/Makefile \
60         po/Makefile.in \
61         po/Makefile.in.in \
62         po/POTFILES \
63         po/POTFILES.in \
64         po/Rules-quot \
65         po/boldquot.sed \
66         po/cat-id-tbl.c \
67         po/en@boldquot.header \
68         po/en@quot.header \
69         po/insert-header.sin \
70         po/quot.sed \
71         po/remove-potcdate.sin \
72         po/stamp-po \
73         po/Makevars.template