mirror of
https://git.proxmox.com/git/proxmox-perl-rs
synced 2025-05-24 03:05:57 +00:00
buildsys: move package_template to defines.mk
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
b5ca6876d3
commit
3c86999734
11
Makefile
11
Makefile
@ -1,3 +1,5 @@
|
|||||||
|
include defines.mk
|
||||||
|
|
||||||
CARGO ?= cargo
|
CARGO ?= cargo
|
||||||
|
|
||||||
ifeq ($(BUILD_MODE), release)
|
ifeq ($(BUILD_MODE), release)
|
||||||
@ -7,15 +9,6 @@ else
|
|||||||
DEBUG_LIBPATH := "-L./target/debug",
|
DEBUG_LIBPATH := "-L./target/debug",
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define package_template
|
|
||||||
sed -r \
|
|
||||||
-e 's/\{\{PRODUCT\}\}/$(1)/g;' \
|
|
||||||
-e 's/\{\{LIBRARY\}\}/$(2)/g;' \
|
|
||||||
-e 's|\{\{DEBUG_LIBPATH\}\}|$(DEBUG_LIBPATH)|g;' \
|
|
||||||
Proxmox/Lib/template.pm \
|
|
||||||
>Proxmox/Lib/$(1).pm
|
|
||||||
endef
|
|
||||||
|
|
||||||
define upload_template
|
define upload_template
|
||||||
cd build; \
|
cd build; \
|
||||||
dcmd --deb lib$(1)-rs-perl*.changes \
|
dcmd --deb lib$(1)-rs-perl*.changes \
|
||||||
|
8
defines.mk
Normal file
8
defines.mk
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
define package_template
|
||||||
|
sed -r \
|
||||||
|
-e 's/\{\{PRODUCT\}\}/$(1)/g;' \
|
||||||
|
-e 's/\{\{LIBRARY\}\}/$(2)/g;' \
|
||||||
|
-e 's|\{\{DEBUG_LIBPATH\}\}|$(DEBUG_LIBPATH)|g;' \
|
||||||
|
Proxmox/Lib/template.pm \
|
||||||
|
>Proxmox/Lib/$(1).pm
|
||||||
|
endef
|
Loading…
Reference in New Issue
Block a user