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