1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1695 Ubuntu PPA: made OP modifications in package rule rather than hardcoded to debian rules file

This commit is contained in:
James Duley 2015-02-01 08:51:55 +13:00
parent 61395f44fc
commit 9a1f155510
2 changed files with 4 additions and 6 deletions

View File

@ -17,7 +17,9 @@ DEB_PACKAGE_NAME := openpilot_$(DEB_VER)_$(DEB_ARCH)
.PHONY: package
package: debian
$(V1) echo "Building Linux package, please wait..."
@$(ECHO) "Building Linux package, please wait..."
# Override clean and build because OP has already performed them.
$(V1) printf "override_dh_auto_clean:\noverride_dh_auto_build:\n\t#\n" >> debian/rules
$(V1) dpkg-buildpackage -b -us -uc
$(V1) mv $(ROOT_DIR)/../$(DEB_PACKAGE_NAME).deb $(PACKAGE_DIR)
$(V1) mv $(ROOT_DIR)/../$(DEB_PACKAGE_NAME).changes $(PACKAGE_DIR)

View File

@ -11,12 +11,8 @@ export DH_OPTIONS
%:
dh $@
# Disabled because OpenPilot makefile cleans and builds.
override_dh_auto_clean:
#
override_dh_auto_build:
#dh_auto_build -- all
dh_auto_build -- all
override_dh_auto_install:
dh_auto_install -- prefix=/usr