mirror of
https://github.com/NixOS/nix
synced 2025-07-12 19:05:08 +02:00
Merge commit '36c6786036
'
This commit is contained in:
commit
14955c297d
7 changed files with 60 additions and 19 deletions
|
@ -23,9 +23,9 @@ programs-list :=
|
|||
# - $(1)_INSTALL_DIR: the directory where the program will be
|
||||
# installed; defaults to $(bindir).
|
||||
define build-program
|
||||
_d := $$($(1)_DIR)
|
||||
_d := $(buildprefix)$$($(1)_DIR)
|
||||
_srcs := $$(sort $$(foreach src, $$($(1)_SOURCES), $$(src)))
|
||||
$(1)_OBJS := $$(addsuffix .o, $$(basename $$(_srcs)))
|
||||
$(1)_OBJS := $$(addprefix $(buildprefix), $$(addsuffix .o, $$(basename $$(_srcs))))
|
||||
_libs := $$(foreach lib, $$($(1)_LIBS), $$($$(lib)_PATH))
|
||||
$(1)_PATH := $$(_d)/$(1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue