blob: 69ccb1bb9d5d118bd0615efef9e668243c260b2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
define get_package_version
IFS=' ()' read _ ver _ < $(1)/debian/changelog && echo $${ver##*:}
endef
arch := $(shell dpkg-architecture -q DEB_HOST_ARCH)
version := $(shell $(call get_package_version, .))
packages = openssh-client openssh-server openssh-sftp-server
package_files = $(addsuffix _$(version)_$(arch).deb,$(addprefix ../,$(packages)))
committed_build_products = config.guess config.h.in config.sub configure aclocal.m4
.DEFAULT_GOAL = build-stamp
gitignore:
git checkout $(committed_build_products)
rm -f debian/autoreconf.after debian/autoreconf.before
SID_TOOL = apt -o Debug::pkgProblemResolver=yes --no-install-recommends -t sid
build-stamp: pkgs=$(package_files)
install-deps-stamp:
DEB_BUILD_PROFILES=pkg.openssh.nognome mk-build-deps --tool="$(SID_TOOL)" ./debian/control --install --root-cmd sudo --remove || true
touch $@
build-stamp: install-deps-stamp
DEB_BUILD_PROFILES=pkg.openssh.nognome dpkg-buildpackage -us -uc -nc
$(package_files): build-stamp
build-stamp:
install: build-stamp install-stamp
install-stamp: $(package_files)
sudo dpkg -i $(package_files)
touch $@
list:
@echo $(package_files)
cp:
[ "$(dest)" ]
cp --reflink $(package_files) '$(dest)'/
stampdirs = ./ dh-runit/ libfido2/
.PHONY: clean mrproper
clean:
rm -f $(addsuffix build-stamp, $(stampdirs)) $(addsuffix install-stamp, $(stampdirs))
dh-clean:
dh clean
mrproper: clean dh-clean gitignore
|