Change -a to -pR in cp invocations for SUSv3 compliance.
[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 echo $$f >> po/potfile-temp ; done
25         @if ( ! test -e $@ ) || ( ! diff  -q po/potfile-temp $@ ) ; then  mv po/potfile-temp $@ ; else $(RM) po/potfile-temp ; fi
26
27 install-sh Makefile.in: intl Makefile.am aclocal.m4 config.h.in ABOUT-NLS
28         automake --add-missing
29
30 po/Makefile.in.in intl ABOUT-NLS:
31         touch -f Makefile.am Makefile.am-stamp
32         touch -f configure.ac configure.ac-stamp
33         cp -pR configure.ac configure.ac-bak
34         cp -pR Makefile.am Makefile.am-bak
35         gettextize -f -c --no-changelog --intl
36         cp -pR Makefile.am-bak Makefile.am
37         touch -f Makefile.am-stamp Makefile.am
38         cp -pR configure.ac-bak configure.ac
39         touch -f configure.ac-stamp configure.ac
40         $(RM) configure.ac-bak configure.ac-stamp
41         $(RM) Makefile.am-bak Makefile.am-stamp
42
43
44
45 .PHONY: clean
46 clean:
47         $(RM) config.sub config.guess
48         $(RM) ABOUT-NLS
49         $(RM) -r autom4te.cache
50         $(RM) aclocal.m4
51         $(RM) missing mkinstalldirs
52         $(RM) install-sh
53         $(RM) configure Makefile Makefile.in
54         $(RM) depcomp
55         $(RM) -r m4 intl
56         $(RM) po/ChangeLog \
57         po/Makefile \
58         po/Makefile.in \
59         po/Makefile.in.in \
60         po/POTFILES \
61         po/POTFILES.in \
62         po/Rules-quot \
63         po/boldquot.sed \
64         po/cat-id-tbl.c \
65         po/en@boldquot.header \
66         po/en@quot.header \
67         po/insert-header.sin \
68         po/quot.sed \
69         po/remove-potcdate.sin \
70         po/stamp-po \
71         po/Makevars.template