1 include /usr
/share
/dpkg
/default.mk
7 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
9 GITVERSION
:=$(shell git rev-parse HEAD
)
11 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
12 DSC
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
16 $(SRCDIR
)/vnc.html
: submodule
17 $(BUILDDIR
): $(SRCDIR
)/vnc.html
19 cp
-rpa
$(SRCDIR
) $(BUILDDIR
)
20 cp
-a debian
$(BUILDDIR
)
21 echo
"git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
)/debian
/SOURCE
26 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
30 $(ORIG_SRC_TAR
): $(BUILDDIR
)
31 tar czf
$(ORIG_SRC_TAR
) -C
$(BUILDDIR
) .
35 $(DSC
): $(ORIG_SRC_TAR
) $(BUILDDIR
)
36 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
-d
41 test -f
"$(SRCDIR)/package.json" || git submodule update
--init
45 git submodule
foreach 'git pull --ff-only origin master'
48 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
50 tar cf
- $(DEB
)|ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
,pve
--dist $(UPLOAD_DIST
)
57 rm -rf
*~ debian
/*~
*.deb
$(BUILDDIR
) *.changes
*.dsc
*.buildinfo
$(PACKAGE
)*.
tar.gz