-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.debian
58 lines (46 loc) · 1.76 KB
/
Makefile.debian
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
57
DEBIAN_VERSION =${shell head -1 debian/changelog 2>/dev/null | sed -e '1s,.*(\([^)]*\)).*,\1,'}
DEBIAN_ARCH = $(shell test -x `which dpkg-architecture 2>/dev/null` && dpkg-architecture -qDEB_BUILD_ARCH 2>/dev/null || echo i386)
TARBALL = $(distdir).tar.gz
DEBDIR = .debian
STAMP = $(DEBDIR)/stamp
DISTDIR = $(DEBDIR)/$(distdir)
CHANGES = $(DEBDIR)/@PACKAGE@_$(DEBIAN_VERSION)_$(DEBIAN_ARCH).changes
UPLOAD = $(DEBDIR)/@PACKAGE@_$(DEBIAN_VERSION)_$(DEBIAN_ARCH).upload
$(TARBALL):
$(error run 'make dist' to create the tarball)
$(STAMP): $(TARBALL)
mkdir -p $(DEBDIR)
tar xfz $(TARBALL) -C $(DEBDIR)
cp -r $(DISTDIR) $(DISTDIR).orig
rm -rf $(DISTDIR).orig/debian
touch $@
$(CHANGES): $(STAMP)
cd $(DISTDIR) && debuild -uc -us
dpkg-sig --cache-passphrase --sign-changes full --sign builder $@
$(DEBDIR)/dupload.conf: dupload.conf
ln -f $< $@
$(UPLOAD): $(CHANGES) $(DEBDIR)/dupload.conf
cd $(DEBDIR) && dupload -c --to pdo
.PHONY: debian
debian: $(CHANGES)
@echo "Debian packages for version $(DEBIAN_VERSION) built in .debian subdirectory"
.PHONY: dupload
dupload: $(UPLOAD)
@echo "Debian packages uploaded."
.PHONY: debclean
debclean:
rm -rf $(DEBDIR)
dist-local: debclean
# COPYRIGHT --
#
# This file is part of libhid, a user-space HID access library.
# libhid is (c) 2003-2005
# Martin F. Krafft <[email protected]>
# Charles Lepple <[email protected]>
# Arnaud Quette <[email protected]> && <[email protected]>
# and distributed under the terms of the GNU General Public License.
# See the file ./COPYING in the source distribution for more information.
#
# THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES
# OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.