Line | |
---|
1 | # $Id: common.gmk,v 1.7 2004/02/16 20:53:38 bird Exp $
|
---|
2 | #
|
---|
3 |
|
---|
4 | # Common definitions.
|
---|
5 |
|
---|
6 | show::
|
---|
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 |
|
---|
22 | pm_topdir := $(CURDIR)/$(pm_topdir)
|
---|
23 | pm_srcdir ?= $(CURDIR)
|
---|
24 | pm_objdir ?= $(pm_topdir)/out/$(BUILD_TARGET)/$(BUILD_TYPE)/ports/bld/$(notdir $(CURDIR))
|
---|
25 | pm_package ?= $(notdir $(CURDIR))
|
---|
26 | pm_prefix ?= /usr
|
---|
27 | pm_insdir ?= $(pm_topdir)/out/$(BUILD_TARGET)/$(BUILD_TYPE)/ports/ins$(pm_prefix)
|
---|
28 | pm_pubdirbase ?= $(pm_topdir)/out/$(BUILD_TARGET)/$(BUILD_TYPE)/ports/pub/$(notdir $(CURDIR))
|
---|
29 | pm_pubdir ?= $(pm_pubdirbase)$(pm_prefix)
|
---|
30 | pm_docdir ?= usr/doc/$(pm_package)-$(PM_VERSION)
|
---|
31 | pm_makefile ?= $(pm_srcdir)/Makefile.kmk
|
---|
32 | ifndef pm_buildts
|
---|
33 | pm_buildts := $(shell date +"%Y%m%d-%H%M%S")
|
---|
34 | endif
|
---|
35 | GNUMAKE ?= make
|
---|
36 |
|
---|
37 | unexport pm_topdir
|
---|
38 | unexport pm_srcdir
|
---|
39 | unexport pm_objdir
|
---|
40 | unexport pm_insdir
|
---|
41 | unexport pm_pubdir
|
---|
42 | unexport pm_prefix
|
---|
43 | unexport pm_docdir
|
---|
44 | unexport pm_package
|
---|
45 | unexport pm_makefile
|
---|
46 | unexport pm_buildts
|
---|
Note:
See
TracBrowser
for help on using the repository browser.