0d0495e818
Before this commit, the headers in plat/osx/include got installed twice into PLATIND/osx386/include and PLATIND/osxppc/include. This commit installs them once into PLATIND/osx/include and changes both descr files to find them. Several rules in lang/ depend on plat/osx386/include+headers or plat/osxppc/include+headers. They each become a simplerule that depends on plat/osx/include+headers.
25 lines
398 B
Lua
25 lines
398 B
Lua
include("plat/build.lua")
|
|
|
|
headermap = {}
|
|
packagemap = {}
|
|
|
|
local function addheader(h)
|
|
headermap[h] = "plat/osx/include/"..h
|
|
packagemap["$(PLATIND)/osx/include/"..h] = "plat/osx/include/"..h
|
|
end
|
|
|
|
addheader("ack/config.h")
|
|
addheader("sys/mman.h")
|
|
addheader("sys/types.h")
|
|
addheader("unistd.h")
|
|
|
|
acklibrary {
|
|
name = "headers",
|
|
hdrs = headermap
|
|
}
|
|
|
|
installable {
|
|
name = "pkg",
|
|
map = packagemap
|
|
}
|