1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-176 allow override the linux package type

by setting PKG_TYPE
This commit is contained in:
James Duley 2015-11-08 20:44:22 +00:00
parent 8c3beaa28c
commit 62359e11f7

View File

@ -16,15 +16,17 @@ s,<GITWEB_URL>,$(GITWEB_URL),g; \
# Are we using a debian based distro?
ifneq ($(wildcard /etc/apt/sources.list),)
include $(ROOT_DIR)/package/linux/deb.mk
PKG_TYPE := deb
# Are we using a rpm based distro?
else ifneq ($(wildcard /etc/yum.repos.d/*),)
include $(ROOT_DIR)/package/linux/rpm.mk
PKG_TYPE := rpm
# Are we using an Arch based distro?
else ifneq ($(wildcard /etc/pacman.conf),)
$(info TODO: built in arch package)
endif
-include $(ROOT_DIR)/package/linux/$(PKG_TYPE).mk
##############################
#
# Install Linux Target