X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/preload-hacks/blobdiff_plain/ba98b375ff7fd7c5c848d650d50848c4ef4c1d65:/Makefile..355a0a3cf58f970cc03b9d6a22902ae5f363612f:/Make.rules diff --git a/Makefile b/Make.rules similarity index 95% rename from Makefile rename to Make.rules index b77af1d..4129928 100644 --- a/Makefile +++ b/Make.rules @@ -23,7 +23,7 @@ ### 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) @@ -114,7 +114,8 @@ distdir = $(PACKAGE)-$(VERSION) DISTTAR = $(distdir).tar.gz ## Distribute the build utilities. -DISTFILES += Makefile +DISTFILES += Make.rules +DISTFILES += configure DISTFILES += auto-version ## Documentation. @@ -205,10 +206,10 @@ distcheck: dist +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 --------------------------------------------------