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