mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
OP-1666 deb tidy: changed to using dh
This commit is contained in:
parent
ea0bafa27e
commit
9cc7b654af
@ -1,60 +1,25 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
#
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
#
|
||||
# Modified to make a template file for a multi-binary package with separated
|
||||
# build-arch and build-indep targets by Bill Allombert 2001
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
# export DH_VERBOSE=1
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# This has to be exported to make some magic below work.
|
||||
export DH_OPTIONS=-v
|
||||
export DH_OPTIONS
|
||||
|
||||
#%:
|
||||
# dh $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean
|
||||
%:
|
||||
dh $@
|
||||
|
||||
install:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
dh_installudev --priority=45
|
||||
$(MAKE) prefix=/usr DESTDIR=$(CURDIR)/debian/openpilot install
|
||||
# Disabled because OpenPilot makefile cleans and builds.
|
||||
override_dh_auto_clean:
|
||||
#$(MAKE) all_clean
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: install
|
||||
override_dh_auto_build:
|
||||
#dh_auto_build -- all
|
||||
|
||||
# We have nothing to build by default. Got taken care of by OPs build system
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb -- -Zbzip2
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
|
||||
.PHONY: clean binary-indep binary-arch binary install
|
||||
override_dh_auto_test:
|
||||
# Fails non-silently because it is run under fakeroot.
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_auto_install -- prefix=/usr
|
||||
|
Loading…
Reference in New Issue
Block a user