]>
git.proxmox.com Git - pve-lxc-syscalld.git/blob - Makefile
34955b4b6be9c8a3f63a1990a46445a77d058390
1 include /usr
/share
/dpkg
/architecture.mk
2 include /usr
/share
/dpkg
/pkg-info.mk
6 GITVERSION
:=$(shell git rev-parse HEAD
)
10 ifeq ($(BUILD_MODE
), release
)
11 CARGO_BUILD_ARGS
+= --release
12 COMPILEDIR
:= target
/release
14 COMPILEDIR
:= target
/debug
17 SERVICE_BIN
:= pve-lxc-syscalld
20 $(addprefix $(COMPILEDIR
)/,$(SERVICE_BIN
))
22 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb
23 DSC
=rust-
$(PACKAGE
)_
$(DEB_VERSION
).dsc
25 all: cargo-build
$(SUBDIRS
)
33 cargo build
$(CARGO_BUILD_ARGS
)
44 cargo
+nightly fmt
-- --check
48 $(COMPILED_BINS
): cargo-build
50 install: $(COMPILED_BINS
)
51 install -dm755
$(DESTDIR
)$(LIBEXECDIR
)/pve-lxc-syscalld
52 $(foreach i
,$(SERVICE_BIN
), \
53 install -m755
$(COMPILEDIR
)/$(i
) $(DESTDIR
)$(LIBEXECDIR
)/pve-lxc-syscalld
/ ;)
59 --config debian
/debcargo.toml \
61 --no-overlay-write-back \
64 $(shell dpkg-parsechangelog
-l debian
/changelog
-SVersion | sed
-e
's/-.*//')
65 sed
-e
'1,/^$$/ ! d' build
/debian
/control
> build
/debian
/control.src
66 cat build
/debian
/control.src build
/debian
/control.in
> build
/debian
/control
67 rm build
/debian
/control.in build
/debian
/control.src
69 find build
/debian
-name
"*.hint" -delete
70 echo system
>build
/rust-toolchain
71 $(foreach i
,$(SUBDIRS
), \
72 $(MAKE
) -C build
/$(i
) clean ;)
77 cd build
; dpkg-buildpackage
-b
-us
-uc
--no-pre-clean
--build-profiles
=nodoc
83 cd build
; dpkg-buildpackage
-S
-us
-uc
-d
-nc
89 sudo
-k dpkg
-i
$(DEB
)
92 $(foreach i
,$(SUBDIRS
), \
93 $(MAKE
) -C
$(i
) clean ;)
95 rm -rf
*.deb
*.dsc
*.
tar.gz
*.buildinfo
*.changes build