File: rules

package info (click to toggle)
librem-ec-acpi 0.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: ansic: 627; sh: 39; makefile: 17
file content (17 lines) | stat: -rwxr-xr-x 354 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_VERSION_UPSTREAM

%:
	dh $@ --buildsystem=none

override_dh_dkms:
	dh_dkms -V $(DEB_VERSION_UPSTREAM)

ifneq (,$(wildcard .git))
upstream:
	git remote show $@ >/dev/null 2>&1 || git remote add $@ $(shell sed -rn 's/Repository: //p' debian/upstream/metadata)
	git fetch $@ --prune
endif