-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (42 loc) · 1.21 KB
/
Makefile
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
56
include /usr/share/dpkg/pkg-info.mk
PACKAGE=novnc-pve
SRCDIR=novnc
BUILDDIR=${SRCDIR}.tmp
GITVERSION:=$(shell git rev-parse HEAD)
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
all:
${SRCDIR}/vnc.html: submodule
${BUILDDIR}: $(SRCDIR)/vnc.html
rm -rf ${BUILDDIR}
cp -rpa ${SRCDIR} ${BUILDDIR}
cp -a debian ${BUILDDIR}
echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
.PHONY: deb
deb: ${DEB}
${DEB}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -b -uc -us
lintian ${DEB}
@echo ${DEB}
.PHONY: dsc
dsc: ${DSC}
${DSC}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -S -uc -us -d
lintian ${DSC}
.PHONY: submodule
submodule:
test -f "${SRCDIR}/VERSION" || git submodule update --init
.PHONY: download
download ${SRCDIR}:
git submodule foreach 'git pull --ff-only origin master'
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB}|ssh -X [email protected] -- upload --product pmg,pve --dist buster
.PHONY: distclean
distclean: clean
.PHONY: clean
clean:
rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo ${PACKAGE}*.tar.gz
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}