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