1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
7 export VERSION
=$(DEB_VERSION_UPSTREAM_REVISION
)
10 XTERMJSTGZ
=xterm-
$(XTERMJSVER
).tgz
13 FITADDONTGZ
=xterm-addon-fit-
$(FITADDONVER
).tgz
15 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_
$(DEB_HOST_ARCH
).deb
16 DBG_DEB
=$(PACKAGE
)-dbgsym_
$(DEB_VERSION_UPSTREAM_REVISION
)_
$(DEB_HOST_ARCH
).deb
17 DSC
=rust-
$(CRATENAME
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
19 ifeq ($(BUILD_MODE
), release
)
20 CARGO_BUILD_ARGS
+= --release
21 COMPILEDIR
:= target
/release
23 COMPILEDIR
:= target
/debug
26 all: cargo-build
$(SRCIDR
)
34 cargo build
$(CARGO_BUILD_ARGS
)
41 --config debian
/debcargo.toml \
43 --no-overlay-write-back \
46 $(shell dpkg-parsechangelog
-l debian
/changelog
-SVersion | sed
-e
's/-.*//')
48 find build
/debian
-name
"*.hint" -delete
49 cp build
/debian
/control debian
/control
50 echo
"git clone git://git.proxmox.com/git/pve-xtermjs.git\\ngit checkout $$(git rev-parse HEAD)" \
51 > $@.tmp
/debian
/SOURCE
55 $(DEB
) $(DBG_DEB
): build
56 cd build
; dpkg-buildpackage
-b
-uc
-us
--no-pre-clean
63 cd build
; dpkg-buildpackage
-S
-us
-uc
-d
-nc
66 X_EXCLUSIONS
=--exclude
=addons
/attach
--exclude
=addons
/fullscreen
--exclude
=addons
/search \
67 --exclude
=addons
/terminado
--exclude
=addons
/webLinks
--exclude
=addons
/zmodem
70 wget https
://registry.npmjs.org
/xterm
/-/$(XTERMJSTGZ
) -O
$(XTERMJSTGZ
).tmp
71 wget https
://registry.npmjs.org
/xterm-addon-fit
/-/$(FITADDONTGZ
) -O
$(FITADDONTGZ
).tmp
72 mv
$(XTERMJSTGZ
).tmp
$(XTERMJSTGZ
)
73 mv
$(FITADDONTGZ
).tmp
$(FITADDONTGZ
)
74 tar -C src
/www
-xf
$(XTERMJSTGZ
) package
/lib package
/css
--strip-components
=2 $(X_EXCLUSIONS
)
75 tar -C src
/www
-xf
$(FITADDONTGZ
) package
/lib
--strip-components
=2 $(X_EXCLUSIONS
)
76 rm $(XTERMJSTGZ
) $(FITADDONTGZ
)
79 upload
: $(DEB
) $(DBG_DEB
)
80 tar cf
- $(DEB
) $(DBG_DEB
) |ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
,pve
,pbs
--dist bullseye
87 rm -rf
*~ debian
/*~
$(PACKAGE
)-*/ build
/ *.deb
*.changes
*.dsc
*.
tar.?z
*.buildinfo