i18n: New functions for UTF-8 case conversion.
[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         unicase/u8-casecmp \
80         unicase/u8-casefold \
81         unicase/u8-tolower \
82         unicase/u8-toupper \
83         unictype/ctype-print \
84         unictype/property-id-continue \
85         unictype/property-id-start \
86         unigbrk/uc-is-grapheme-break \
87         unilbrk/u8-possible-linebreaks \
88         uninorm/nfkd \
89         unistd \
90         unistr/u8-check \
91         unistr/u8-cpy \
92         unistr/u8-mblen \
93         unistr/u8-mbtouc \
94         unistr/u8-mbtoucr \
95         unistr/u8-strlen \
96         unistr/u8-strmbtouc \
97         unistr/u8-strncat \
98         unistr/u8-uctomb \
99         uniwidth/u8-strwidth \
100         unitypes \
101         unlocked-io \
102         vasprintf-posix \
103         version-etc \
104         version-etc-fsf \
105         vfprintf-posix \
106         vprintf-posix \
107         vsnprintf \
108         vsnprintf-posix \
109         vsprintf-posix \
110         xalloc \
111         xalloc-die \
112         xmalloca \
113         xmemdup0 \
114         xsize \
115         xstrndup \
116         xvasprintf
117
118 all: prep_ph
119         $(MAKE) -f Smake Makefile.in configure
120
121 .PHONY: prep_ph
122 prep_ph: 
123         test -e ChangeLog || touch ChangeLog
124         test -d m4 || mkdir m4
125         touch m4/Makefile.am
126         $(GNULIB_TOOL) --add-import --no-changelog --m4-base=gl/m4 \
127                 --source-base=gl --lib=libgl --tests-base=tests \
128                 --doc-base=gl/doc --aux-dir=build-aux  \
129                 --libtool $(GNULIB_MODULES)
130         libtoolize --force --automake
131
132 aclocal.m4:
133         aclocal -I m4 -I gl/m4
134
135 configure: configure.ac aclocal.m4
136         autoconf
137
138 config.h.in: configure.ac
139         autoheader
140
141 Makefile.in: Makefile.am config.h.in aclocal.m4
142         automake --add-missing --copy --no-force --include-deps
143
144
145 gettextize:
146         test -d m4 || mkdir m4
147         touch m4/Makefile.am
148         gettextize --force --no-changelog
149
150 check: all
151         rm -rf _check
152         mkdir _check
153         cd _check && ../configure $(CONFIGUREFLAGS)
154         cd _check && make distcheck
155         rm -rf _check
156
157 _build: all
158         test -d _build || mkdir _build
159         cd _build && ../configure $(CONFIGUREFLAGS)
160
161 _debug: all
162         test -d _debug || mkdir _debug
163         cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
164
165 PO_FILES = po/ChangeLog \
166 po/Rules-quot po/boldquot.sed           \
167 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                 \
168 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po     \
169 po/Makevars.template po/pspp.pot
170
171 clean:
172         rm -f config.sub config.guess config.rpath
173         rm -fr autom4te.cache
174         rm -f aclocal.m4
175         rm -f missing mkinstalldirs
176         rm -f install-sh
177         rm -f configure Makefile 
178         rm -f depcomp
179         rm -rf intl gl
180         rm -f m4/*.m4
181         rm -f $(PO_FILES) po/*.gmo 
182         rm -f mdate-sh texinfo.tex
183         rm -f doc/stamp-vti
184         rm -f config.h.in~
185         rm -f config.h.in
186         find . -name Makefile.in -exec rm -f {} \; 
187         rm -f compile
188         rm -f ltmain.sh
189         rm -f reloc-ldflags install-reloc
190
191 .PHONY: all gettextize clean