### with preload-hacks; if not, write to the Free Software Foundation, Inc.,
### 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-srcdir = .
+srcdir ?= .
PACKAGE = preload-hacks
VERSION := $(shell cd $(srcdir) && ./auto-version)
DISTTAR = $(distdir).tar.gz
## Distribute the build utilities.
-DISTFILES += Makefile
+DISTFILES += Make.rules
+DISTFILES += configure
DISTFILES += auto-version
## Documentation.
+cd _distcheck && \
tar xvfz ../$(DISTTAR) && \
mkdir _build && cd _build && \
- make -f../$(distdir)/Makefile srcdir=../$(distdir) && \
- make -f../$(distdir)/Makefile srcdir=../$(distdir) \
- install DESTDIR=../_install && \
- make -f../$(distdir)/Makefile srcdir=../$(distdir) dist
+ ../$(distdir)/configure && \
+ make && \
+ make install DESTDIR=../_install && \
+ make dist
rm -rf _distcheck
###----- That's all, folks --------------------------------------------------