Smake: Remove unused gethostname, getlogin_r, strsep modules.
[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         close \
13         count-one-bits \
14         crypto/md4 \
15         dirname \
16         environ \
17         exit \
18         fatal-signal \
19         fcntl \
20         fpieee \
21         fprintf-posix \
22         full-read \
23         full-write \
24         fseeko \
25         ftello \
26         fwriteerror \
27         getline \
28         getopt \
29         gettext-h \
30         gettimeofday \
31         gitlog-to-changelog \
32         isfinite \
33         isinf \
34         isnan \
35         intprops \
36         inttostr \
37         localcharset \
38         mbchar \
39         memcasecmp \
40         memchr \
41         memcmp \
42         memmove \
43         mempcpy \
44         memset \
45         minmax \
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         strcspn \
63         strerror \
64         strftime \
65         strtod \
66         strtok_r \
67         strtol \
68         strtoul \
69         sys_stat \
70         tempname \
71         tmpfile \
72         trunc \
73         unilbrk/ulc-width-linebreaks \
74         unistd \
75         unistr/u8-cpy \
76         unistr/u8-strlen \
77         unistr/u8-strncat \
78         unlocked-io \
79         vasprintf-posix \
80         version-etc \
81         version-etc-fsf \
82         vfprintf-posix \
83         vprintf-posix \
84         vsnprintf \
85         vsnprintf-posix \
86         vsprintf-posix \
87         xalloc \
88         xalloc-die \
89         xmalloca \
90         xmemdup0 \
91         xsize \
92         xstrndup \
93         xvasprintf
94
95 all: 
96         test -e ChangeLog || touch ChangeLog
97         test -d m4 || mkdir m4
98         echo '*' > m4/.cvsignore
99         touch m4/Makefile.am
100         $(GNULIB_TOOL) --import --no-changelog --m4-base=gl/m4 \
101                 --source-base=gl --lib=libgl --tests-base=tests \
102                 --doc-base=gl/doc --aux-dir=. --import $(GNULIB_MODULES)
103         echo '*' > gl/.cvsignore
104         echo '*' > gl/m4/.cvsignore
105         libtoolize --force --automake
106         aclocal -I m4 -I gl/m4
107         autoconf
108         autoheader
109         automake --add-missing --copy --no-force
110
111 gettextize:
112         test -d m4 || mkdir m4
113         touch m4/Makefile.am
114         gettextize --force --no-changelog
115
116 check: all
117         rm -rf _check
118         mkdir _check
119         cd _check && ../configure $(CONFIGUREFLAGS)
120         cd _check && make distcheck
121         rm -rf _check
122
123 _build: all
124         test -d _build || mkdir _build
125         cd _build && ../configure $(CONFIGUREFLAGS)
126
127 _debug: all
128         test -d _debug || mkdir _debug
129         cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
130
131 PO_FILES = po/ChangeLog \
132 po/Rules-quot po/boldquot.sed           \
133 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                 \
134 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po     \
135 po/Makevars.template po/pspp.pot
136
137 clean:
138         rm -f config.sub config.guess config.rpath
139         rm -f ABOUT-NLS
140         rm -fr autom4te.cache
141         rm -f aclocal.m4
142         rm -f missing mkinstalldirs
143         rm -f install-sh
144         rm -f configure Makefile 
145         rm -f depcomp
146         rm -rf intl gl
147         rm -f m4/*.m4
148         rm -f $(PO_FILES) po/*.gmo 
149         rm -f mdate-sh texinfo.tex
150         rm -f doc/stamp-vti
151         rm -f config.h.in~
152         rm -f config.h.in
153         find . -name Makefile.in -exec rm -f {} \; 
154         rm -f compile
155         rm -f ltmain.sh
156         rm -f reloc-ldflags install-reloc
157
158 .PHONY: all gettextize clean