## Process this file with automake to produce Makefile.in -*- makefile -*-
-TESTS_ENVIRONMENT=top_srcdir=${top_srcdir}
-TESTS = command/aggregate.sh \
- command/autorecod.sh \
- command/beg-data.sh \
- command/bignum.sh \
- command/count.sh \
- command/compute.sh \
- command/descriptives.sh \
- command/erase.sh \
- command/file-label.sh \
- command/filter.sh \
- command/flip.sh \
- command/lag.sh \
- command/list.sh \
- command/loop.sh \
- command/percentiles.sh \
- command/print.sh \
- command/sample.sh \
- command/sort.sh \
- command/tabs.sh \
- command/split-file.sh \
- command/weight.sh \
- bugs/alpha-freq.sh \
- bugs/double-frequency.sh \
- bugs/html-frequency.sh \
- bugs/crosstabs.sh
-
-noinst_PROGRAMS = gengarbage
-
-noinst_DATA = sort.data
-sort.data: gengarbage$(EXTEXT)
- ./gengarbage | head -1000 > $@
-
-EXTRA_DIST = $(TESTS) weighting.data data-list.data list.data
-
-DISTCLEANFILES = *.save sort.data pspp.* foo* msgs *.actual
-
-MAINTAINERCLEANFILES = Makefile.in
+AUTOMAKE_OPTIONS = gnits 1.7
+
+SUBDIRS = m4 intl doc lib src po config tests
+
+pkgdocdir = $(prefix)/doc/@PACKAGE@
+pkgdoc_DATA = NEWS README TODO
+noinst_DATA = AUTHORS THANKS
+
+DISTCLEANFILES = pref.h
+
+dist-hook:
+ cp -rp $(top_srcdir)/examples $(distdir)
+
+# A `private installation' in my terms is just having the appropriate
+# configuration files in ~/.pspp instead of a global configuration
+# location. So I let those files be installed automatically.
+
+private-install:
+ $(MAKE) private-install -C config
+private-uninstall:
+ $(MAKE) private-uninstall -C config
+
+EXTRA_DIST = mkinstalldirs config.rpath NEWS ONEWS TODO pref.h.orig configure
+
+MAINTAINERCLEANFILES = Makefile.in aclocal.m4
+
+
+ACLOCAL_AMFLAGS = -I m4