PsppireOutputWindow (create_xr_print_driver) fix LC_NUMERIC issues.
[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-snprintf \
11         c-strcase \
12         c-strcasestr \
13         c-ctype \
14         c-strtod \
15         c-xvasprintf \
16         clean-temp \
17         close \
18         configmake \
19         count-one-bits \
20         crc \
21         crypto/md4 \
22         crypto/md5 \
23         dirname \
24         dtoastr \
25         environ \
26         fatal-signal \
27         fcntl \
28         fpieee \
29         fprintf-posix \
30         full-read \
31         full-write \
32         fseeko \
33         ftello \
34         fwriteerror \
35         getline \
36         gettext \
37         gettimeofday \
38         getopt-gnu \
39         gitlog-to-changelog \
40         include_next \
41         isfinite \
42         isinf \
43         isnan \
44         intprops \
45         inttostr \
46         localcharset \
47         mbchar \
48         mbiter \
49         memcasecmp \
50         memchr \
51         mempcpy \
52         memrchr \
53         minmax \
54         mkdtemp \
55         mkstemp \
56         printf-posix \
57         printf-safe \
58         progname \
59         rawmemchr \
60         read-file \
61         regex \
62         relocatable-prog \
63         rename \
64         round \
65         snprintf \
66         snprintf-posix \
67         sprintf-posix \
68         stdarg \
69         stdbool \
70         stdint \
71         stpcpy \
72         strerror \
73         strftime \
74         strtod \
75         strtok_r \
76         sys_stat \
77         tempname \
78         trunc \
79         unictype/ctype-print \
80         unictype/property-id-continue \
81         unictype/property-id-start \
82         unigbrk/uc-is-grapheme-break \
83         unilbrk/u8-possible-linebreaks \
84         unistd \
85         unistr/u8-check \
86         unistr/u8-cpy \
87         unistr/u8-mblen \
88         unistr/u8-mbtouc \
89         unistr/u8-mbtoucr \
90         unistr/u8-strlen \
91         unistr/u8-strmbtouc \
92         unistr/u8-strncat \
93         unistr/u8-uctomb \
94         uniwidth/u8-strwidth \
95         unitypes \
96         unlocked-io \
97         vasprintf-posix \
98         version-etc \
99         version-etc-fsf \
100         vfprintf-posix \
101         vprintf-posix \
102         vsnprintf \
103         vsnprintf-posix \
104         vsprintf-posix \
105         xalloc \
106         xalloc-die \
107         xmalloca \
108         xmemdup0 \
109         xsize \
110         xstrndup \
111         xvasprintf
112
113 all: prep_ph
114         $(MAKE) -f Smake Makefile.in configure
115
116 .PHONY: prep_ph
117 prep_ph: 
118         test -e ChangeLog || touch ChangeLog
119         test -d m4 || mkdir m4
120         touch m4/Makefile.am
121         $(GNULIB_TOOL) --add-import --no-changelog --m4-base=gl/m4 \
122                 --source-base=gl --lib=libgl --tests-base=tests \
123                 --doc-base=gl/doc --aux-dir=build-aux  \
124                 --libtool $(GNULIB_MODULES)
125         libtoolize --force --automake
126
127 aclocal.m4:
128         aclocal -I m4 -I gl/m4
129
130 configure: configure.ac aclocal.m4
131         autoconf
132
133 config.h.in: configure.ac
134         autoheader
135
136 Makefile.in: Makefile.am config.h.in aclocal.m4
137         automake --add-missing --copy --no-force --include-deps
138
139
140 gettextize:
141         test -d m4 || mkdir m4
142         touch m4/Makefile.am
143         gettextize --force --no-changelog
144
145 check: all
146         rm -rf _check
147         mkdir _check
148         cd _check && ../configure $(CONFIGUREFLAGS)
149         cd _check && make distcheck
150         rm -rf _check
151
152 _build: all
153         test -d _build || mkdir _build
154         cd _build && ../configure $(CONFIGUREFLAGS)
155
156 _debug: all
157         test -d _debug || mkdir _debug
158         cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
159
160 PO_FILES = po/ChangeLog \
161 po/Rules-quot po/boldquot.sed           \
162 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                 \
163 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po     \
164 po/Makevars.template po/pspp.pot
165
166 clean:
167         rm -f config.sub config.guess config.rpath
168         rm -fr autom4te.cache
169         rm -f aclocal.m4
170         rm -f missing mkinstalldirs
171         rm -f install-sh
172         rm -f configure Makefile 
173         rm -f depcomp
174         rm -rf intl gl
175         rm -f m4/*.m4
176         rm -f $(PO_FILES) po/*.gmo 
177         rm -f mdate-sh texinfo.tex
178         rm -f doc/stamp-vti
179         rm -f config.h.in~
180         rm -f config.h.in
181         find . -name Makefile.in -exec rm -f {} \; 
182         rm -f compile
183         rm -f ltmain.sh
184         rm -f reloc-ldflags install-reloc
185
186 .PHONY: all gettextize clean