Fix up build following dropping ulc-width-linebreaks 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         minmax \
48         mkdtemp \
49         mkstemp \
50         printf-posix \
51         printf-safe \
52         progname \
53         rawmemchr \
54         read-file \
55         regex \
56         relocatable-prog \
57         rename \
58         round \
59         snprintf \
60         snprintf-posix \
61         sprintf-posix \
62         stdarg \
63         stdbool \
64         stdint \
65         stpcpy \
66         strcase \
67         strerror \
68         strftime \
69         strtod \
70         strtok_r \
71         strtol \
72         strtoul \
73         sys_stat \
74         tempname \
75         trunc \
76         unictype/ctype-print \
77         unictype/property-id-continue \
78         unictype/property-id-start \
79         unigbrk/uc-is-grapheme-break \
80         unistd \
81         unistr/u8-check \
82         unistr/u8-cpy \
83         unistr/u8-mblen \
84         unistr/u8-mbtouc \
85         unistr/u8-mbtoucr \
86         unistr/u8-strlen \
87         unistr/u8-strmbtouc \
88         unistr/u8-strncat \
89         unistr/u8-uctomb \
90         uniwidth/u8-strwidth \
91         unitypes \
92         unlocked-io \
93         vasprintf-posix \
94         version-etc \
95         version-etc-fsf \
96         vfprintf-posix \
97         vprintf-posix \
98         vsnprintf \
99         vsnprintf-posix \
100         vsprintf-posix \
101         xalloc \
102         xalloc-die \
103         xmalloca \
104         xmemdup0 \
105         xsize \
106         xstrndup \
107         xvasprintf
108
109 all: 
110         test -e ChangeLog || touch ChangeLog
111         test -d m4 || mkdir m4
112         touch m4/Makefile.am
113         $(MAKE) -f Smake gnulib
114         libtoolize --force --automake
115         aclocal -I m4 -I gl/m4
116         autoconf
117         autoheader
118         automake --add-missing --copy --no-force
119
120 gnulib:
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 --import \
124                 --libtool $(GNULIB_MODULES)
125
126
127 gettextize:
128         test -d m4 || mkdir m4
129         touch m4/Makefile.am
130         gettextize --force --no-changelog
131
132 check: all
133         rm -rf _check
134         mkdir _check
135         cd _check && ../configure $(CONFIGUREFLAGS)
136         cd _check && make distcheck
137         rm -rf _check
138
139 _build: all
140         test -d _build || mkdir _build
141         cd _build && ../configure $(CONFIGUREFLAGS)
142
143 _debug: all
144         test -d _debug || mkdir _debug
145         cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
146
147 PO_FILES = po/ChangeLog \
148 po/Rules-quot po/boldquot.sed           \
149 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                 \
150 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po     \
151 po/Makevars.template po/pspp.pot
152
153 clean:
154         rm -f config.sub config.guess config.rpath
155         rm -fr autom4te.cache
156         rm -f aclocal.m4
157         rm -f missing mkinstalldirs
158         rm -f install-sh
159         rm -f configure Makefile 
160         rm -f depcomp
161         rm -rf intl gl
162         rm -f m4/*.m4
163         rm -f $(PO_FILES) po/*.gmo 
164         rm -f mdate-sh texinfo.tex
165         rm -f doc/stamp-vti
166         rm -f config.h.in~
167         rm -f config.h.in
168         find . -name Makefile.in -exec rm -f {} \; 
169         rm -f compile
170         rm -f ltmain.sh
171         rm -f reloc-ldflags install-reloc
172
173 .PHONY: all gettextize clean