# $Id: common.gmk,v 1.7 2004/02/16 20:53:38 bird Exp $ # # Common definitions. show:: @echo topdir=$(pm_topdir) @echo srcdir=$(pm_srcdir) @echo objdir=$(pm_objdir) @echo package=$(pm_package) @echo prefix=$(pm_prefix) @echo insdir=$(pm_insdir) @echo pubdirbase=$(pm_pubdirbase) @echo pubdir=$(pm_pubdir) @echo docdir=$(pm_docdir) @echo makefile=$(pm_makefile) @echo makefile_list=$(MAKEFILE_LIST) @echo buildts=$(pm_buildts) @echo GNUMAKE=$(GNUMAKE) pm_topdir := $(CURDIR)/$(pm_topdir) pm_srcdir ?= $(CURDIR) pm_objdir ?= $(pm_topdir)/out/$(BUILD_TARGET)/$(BUILD_TYPE)/ports/bld/$(notdir $(CURDIR)) pm_package ?= $(notdir $(CURDIR)) pm_prefix ?= /usr pm_insdir ?= $(pm_topdir)/out/$(BUILD_TARGET)/$(BUILD_TYPE)/ports/ins$(pm_prefix) pm_pubdirbase ?= $(pm_topdir)/out/$(BUILD_TARGET)/$(BUILD_TYPE)/ports/pub/$(notdir $(CURDIR)) pm_pubdir ?= $(pm_pubdirbase)$(pm_prefix) pm_docdir ?= usr/doc/$(pm_package)-$(PM_VERSION) pm_makefile ?= $(pm_srcdir)/Makefile.kmk ifndef pm_buildts pm_buildts := $(shell date +"%Y%m%d-%H%M%S") endif GNUMAKE ?= make unexport pm_topdir unexport pm_srcdir unexport pm_objdir unexport pm_insdir unexport pm_pubdir unexport pm_prefix unexport pm_docdir unexport pm_package unexport pm_makefile unexport pm_buildts