From 7e704d7ac997387341e920e1757c24cac0efe5e9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 8 Feb 2016 16:36:45 -0500 Subject: Refactor the build system. Avoid recursive make. This looks like a lot, but more things should "just work". We have `make dist` now! --- config.mk | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'config.mk') diff --git a/config.mk b/config.mk index a43581e..414f761 100644 --- a/config.mk +++ b/config.mk @@ -1,8 +1,13 @@ -# Configuration -# Note: $(topdir) is set to the directory containing this file. +# Note: In the default version of this file, commented out values +# indicate what the GNU standards dictate, when our values +# differ. We're not a GNU package. -# Note: In the default version of this file, commented out values indicate what -# the GNU standards dictate, when our values differ. +ifeq ($(topsrcdir),) +topsrcdir := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST)))) +endif + +PACKAGE = libretools +VERSION = $(LIBRETOOLS_VERSION) DESTDIR = @@ -21,5 +26,5 @@ sysconfdir = /etc docdir = $(datarootdir)/doc mandir = $(datarootdir)/man -devtoolsdir = $(topdir)/../devtools-par +devtoolsdir = $(call abspath,$(topsrcdir)/../devtools-par) RONNFLAGS = --manual='libretools Manual' --organization='Parabola' -- cgit v1.2.3