source: trunk/ports-make/common.gmk@ 2615

Last change on this file since 2615 was 2615, checked in by bird, 19 years ago

kmk.

File size: 1.3 KB
Line 
1# $Id: common.gmk,v 1.7 2004/02/16 20:53:38 bird Exp $
2#
3
4# Common definitions.
5
6show::
7 @echo topdir=$(pm_topdir)
8 @echo srcdir=$(pm_srcdir)
9 @echo objdir=$(pm_objdir)
10 @echo package=$(pm_package)
11 @echo prefix=$(pm_prefix)
12 @echo insdir=$(pm_insdir)
13 @echo pubdirbase=$(pm_pubdirbase)
14 @echo pubdir=$(pm_pubdir)
15 @echo docdir=$(pm_docdir)
16 @echo makefile=$(pm_makefile)
17 @echo makefile_list=$(MAKEFILE_LIST)
18 @echo buildts=$(pm_buildts)
19 @echo GNUMAKE=$(GNUMAKE)
20
21
22pm_topdir := $(CURDIR)/$(pm_topdir)
23pm_srcdir ?= $(CURDIR)
24pm_objdir ?= $(pm_topdir)/out/$(BUILD_TARGET)/$(BUILD_TYPE)/ports/bld/$(notdir $(CURDIR))
25pm_package ?= $(notdir $(CURDIR))
26pm_prefix ?= /usr
27pm_insdir ?= $(pm_topdir)/out/$(BUILD_TARGET)/$(BUILD_TYPE)/ports/ins$(pm_prefix)
28pm_pubdirbase ?= $(pm_topdir)/out/$(BUILD_TARGET)/$(BUILD_TYPE)/ports/pub/$(notdir $(CURDIR))
29pm_pubdir ?= $(pm_pubdirbase)$(pm_prefix)
30pm_docdir ?= usr/doc/$(pm_package)-$(PM_VERSION)
31pm_makefile ?= $(pm_srcdir)/Makefile.kmk
32ifndef pm_buildts
33pm_buildts := $(shell date +"%Y%m%d-%H%M%S")
34endif
35GNUMAKE ?= make
36
37unexport pm_topdir
38unexport pm_srcdir
39unexport pm_objdir
40unexport pm_insdir
41unexport pm_pubdir
42unexport pm_prefix
43unexport pm_docdir
44unexport pm_package
45unexport pm_makefile
46unexport pm_buildts
Note: See TracBrowser for help on using the repository browser.