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