Genesis-Plus-GX/libretro/debian/rules

40 lines
1.2 KiB
Plaintext
Raw Normal View History

#!/usr/bin/make -f
# Copyright (C) 2011-2015 Hunter Kaller
# Copyright (C) 2014, 2015 Sergio Benjamim
2015-01-07 23:39:19 +01:00
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
2015-01-07 23:39:19 +01:00
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
2015-01-07 23:39:19 +01:00
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2015-01-07 23:39:19 +01:00
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
2015-01-07 23:39:19 +01:00
%:
dh $@ --parallel
2015-01-07 23:39:19 +01:00
ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
2015-01-07 23:39:19 +01:00
override_dh_auto_build:
ifeq ($(ARCH),armhf)
$(MAKE) -f Makefile.libretro platform="armv hardfloat"
else
$(MAKE) -f Makefile.libretro
2015-01-07 23:39:19 +01:00
endif
2015-01-07 23:39:19 +01:00
override_dh_auto_install:
cp *.so debian/libretro-*/usr/lib/libretro/
2015-01-07 23:39:19 +01:00
override_dh_auto_clean:
$(MAKE) -f Makefile.libretro clean