Remove BLP_INT_DIGITS. Now we use the intprops.h header file instead.
[pspp-builds.git] / Smake
1 # -*- makefile -*-
2
3 GNULIB = ../gnulib
4 GNULIB_TOOL = $(GNULIB)/gnulib-tool
5
6 GNULIB_MODULES = alloca alloca-opt assert full-read full-write          \
7 gethostname getline getlogin_r getopt gettext intprops memcasecmp       \
8 memchr memcmp memmem memmove memset progname readlink restrict          \
9 snprintf stat-macros stdbool stpcpy strcase strcspn strerror strftime   \
10 strstr strtod strtok_r strtol strtoul vsnprintf xalloc xalloc-die       \
11 xreadlink xvasprintf
12
13 all: po/POTFILES.in
14         test -d m4 || mkdir m4
15         touch m4/Makefile.am
16         $(GNULIB_TOOL) --import --no-changelog --m4-base=gl/m4 \
17                 --source-base=gl --lib=libgl --tests-base=tests \
18                 --import $(GNULIB_MODULES)
19         autoreconf --install
20
21 gettextize:
22         test -d m4 || mkdir m4
23         touch m4/Makefile.am
24         gettextize -f -c --intl --no-changelog
25
26 po/POTFILES.in:
27         for f in `find src -name \*.[qc] ! -name .\* -print \
28                   | sed 's/\.[qc]$$//'`; do \
29                 if test $$f = src/libpspp/version.c; then break; fi;              \
30                 if test -e $$f.q; then echo $$f.q; else echo $$f.c; fi    \
31         done | sort | uniq > $@.tmp
32         if test ! -e $@ || ! cmp -s $@.tmp $@; then mv $@.tmp $@; fi
33         rm -f $@.tmp
34
35 check: all
36         rm -rf _check
37         mkdir _check
38         cd _check && ../configure $(CONFIGUREFLAGS)
39         cd _check && make distcheck
40         rm -rf _check
41
42 _build: all
43         test -d _build || mkdir _build
44         cd _build && ../configure $(CONFIGUREFLAGS)
45
46 PO_FILES = po/ChangeLog po/Makefile po/Makefile.in po/Makefile.in.in    \
47 po/POTFILES po/POTFILES.in po/Rules-quot po/boldquot.sed                \
48 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                 \
49 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po     \
50 po/Makevars.template
51
52 clean:
53         rm -f config.sub config.guess config.rpath
54         rm -f ABOUT-NLS
55         rm -fr autom4te.cache
56         rm -f aclocal.m4
57         rm -f missing mkinstalldirs
58         rm -f install-sh
59         rm -f configure Makefile 
60         rm -f depcomp
61         rm -rf intl gl
62         rm -f m4/*.m4
63         rm -f $(PO_FILES)
64         rm -f mdate-sh texinfo.tex
65         rm -f doc/stamp-vti
66         rm -f config.h.in~
67         find . -name Makefile.in -exec rm -f {} \; 
68         rm -f compile
69
70 .PHONY: all gettextize potfiles clean