Use new Gnulib function dtoastr() to format short, accurate real numbers.
[pspp] / Smake
1 # -*- makefile -*-
2
3 # Adjust these to reflect where you've installed gnulib.
4 GNULIB = ../gnulib
5 GNULIB_TOOL = $(GNULIB)/gnulib-tool
6
7 GNULIB_MODULES = \
8         assert \
9         byteswap \
10         c-ctype \
11         c-strtod \
12         clean-temp \
13         close \
14         configmake \
15         count-one-bits \
16         crc \
17         crypto/md4 \
18         crypto/md5 \
19         dirname \
20         dtoastr \
21         environ \
22         fatal-signal \
23         fcntl \
24         fpieee \
25         fprintf-posix \
26         full-read \
27         full-write \
28         fseeko \
29         ftello \
30         fwriteerror \
31         getline \
32         gettext-h \
33         gettimeofday \
34         getopt-gnu \
35         gitlog-to-changelog \
36         isfinite \
37         isinf \
38         isnan \
39         intprops \
40         inttostr \
41         localcharset \
42         mbchar \
43         memcasecmp \
44         memchr \
45         mempcpy \
46         minmax \
47         mkdtemp \
48         mkstemp \
49         printf-posix \
50         printf-safe \
51         progname \
52         regex \
53         relocatable-prog \
54         rename \
55         round \
56         snprintf \
57         snprintf-posix \
58         sprintf-posix \
59         stdarg \
60         stdbool \
61         stdint \
62         stpcpy \
63         strcase \
64         strerror \
65         strftime \
66         strtod \
67         strtok_r \
68         strtol \
69         strtoul \
70         sys_stat \
71         tempname \
72         trunc \
73         unilbrk/ulc-width-linebreaks \
74         unistd \
75         unictype/property-id-continue \
76         unictype/property-id-start \
77         unistr/u8-cpy \
78         unistr/u8-mbtouc \
79         unistr/u8-strlen \
80         unistr/u8-strncat \
81         unitypes \
82         unlocked-io \
83         vasprintf-posix \
84         version-etc \
85         version-etc-fsf \
86         vfprintf-posix \
87         vprintf-posix \
88         vsnprintf \
89         vsnprintf-posix \
90         vsprintf-posix \
91         xalloc \
92         xalloc-die \
93         xmalloca \
94         xmemdup0 \
95         xsize \
96         xstrndup \
97         xvasprintf
98
99 all: 
100         test -e ChangeLog || touch ChangeLog
101         test -d m4 || mkdir m4
102         touch m4/Makefile.am
103         $(MAKE) -f Smake gnulib
104         libtoolize --force --automake
105         aclocal -I m4 -I gl/m4
106         autoconf
107         autoheader
108         automake --add-missing --copy --no-force
109
110 gnulib:
111         $(GNULIB_TOOL) --add-import --no-changelog --m4-base=gl/m4 \
112                 --source-base=gl --lib=libgl --tests-base=tests \
113                 --doc-base=gl/doc --aux-dir=build-aux --import \
114                 --libtool $(GNULIB_MODULES)
115
116
117 gettextize:
118         test -d m4 || mkdir m4
119         touch m4/Makefile.am
120         gettextize --force --no-changelog
121
122 check: all
123         rm -rf _check
124         mkdir _check
125         cd _check && ../configure $(CONFIGUREFLAGS)
126         cd _check && make distcheck
127         rm -rf _check
128
129 _build: all
130         test -d _build || mkdir _build
131         cd _build && ../configure $(CONFIGUREFLAGS)
132
133 _debug: all
134         test -d _debug || mkdir _debug
135         cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
136
137 PO_FILES = po/ChangeLog \
138 po/Rules-quot po/boldquot.sed           \
139 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                 \
140 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po     \
141 po/Makevars.template po/pspp.pot
142
143 clean:
144         rm -f config.sub config.guess config.rpath
145         rm -fr autom4te.cache
146         rm -f aclocal.m4
147         rm -f missing mkinstalldirs
148         rm -f install-sh
149         rm -f configure Makefile 
150         rm -f depcomp
151         rm -rf intl gl
152         rm -f m4/*.m4
153         rm -f $(PO_FILES) po/*.gmo 
154         rm -f mdate-sh texinfo.tex
155         rm -f doc/stamp-vti
156         rm -f config.h.in~
157         rm -f config.h.in
158         find . -name Makefile.in -exec rm -f {} \; 
159         rm -f compile
160         rm -f ltmain.sh
161         rm -f reloc-ldflags install-reloc
162
163 .PHONY: all gettextize clean