gui: Recode syntax files on load and save.
[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         memcasecmp \
47         memchr \
48         mempcpy \
49         memrchr \
50         minmax \
51         mkdtemp \
52         mkstemp \
53         printf-posix \
54         printf-safe \
55         progname \
56         rawmemchr \
57         read-file \
58         regex \
59         relocatable-prog \
60         rename \
61         round \
62         snprintf \
63         snprintf-posix \
64         sprintf-posix \
65         stdarg \
66         stdbool \
67         stdint \
68         stpcpy \
69         strcase \
70         strerror \
71         strftime \
72         strtod \
73         strtok_r \
74         strtol \
75         strtoul \
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: 
114         test -e ChangeLog || touch ChangeLog
115         test -d m4 || mkdir m4
116         touch m4/Makefile.am
117         $(MAKE) -f Smake gnulib
118         libtoolize --force --automake
119         aclocal -I m4 -I gl/m4
120         autoconf
121         autoheader
122         automake --add-missing --copy --no-force
123
124 gnulib:
125         $(GNULIB_TOOL) --add-import --no-changelog --m4-base=gl/m4 \
126                 --source-base=gl --lib=libgl --tests-base=tests \
127                 --doc-base=gl/doc --aux-dir=build-aux --import \
128                 --libtool $(GNULIB_MODULES)
129
130
131 gettextize:
132         test -d m4 || mkdir m4
133         touch m4/Makefile.am
134         gettextize --force --no-changelog
135
136 check: all
137         rm -rf _check
138         mkdir _check
139         cd _check && ../configure $(CONFIGUREFLAGS)
140         cd _check && make distcheck
141         rm -rf _check
142
143 _build: all
144         test -d _build || mkdir _build
145         cd _build && ../configure $(CONFIGUREFLAGS)
146
147 _debug: all
148         test -d _debug || mkdir _debug
149         cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
150
151 PO_FILES = po/ChangeLog \
152 po/Rules-quot po/boldquot.sed           \
153 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                 \
154 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po     \
155 po/Makevars.template po/pspp.pot
156
157 clean:
158         rm -f config.sub config.guess config.rpath
159         rm -fr autom4te.cache
160         rm -f aclocal.m4
161         rm -f missing mkinstalldirs
162         rm -f install-sh
163         rm -f configure Makefile 
164         rm -f depcomp
165         rm -rf intl gl
166         rm -f m4/*.m4
167         rm -f $(PO_FILES) po/*.gmo 
168         rm -f mdate-sh texinfo.tex
169         rm -f doc/stamp-vti
170         rm -f config.h.in~
171         rm -f config.h.in
172         find . -name Makefile.in -exec rm -f {} \; 
173         rm -f compile
174         rm -f ltmain.sh
175         rm -f reloc-ldflags install-reloc
176
177 .PHONY: all gettextize clean