1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 16:25:20 +02:00
xburst-tools/debian/rules
Xiangfu Liu 7b710f3e08 for misunderstand the debian rules. I create a [debian] branch for debian package
develop. this is not good. we should add the debian/ folder to master branch

this commit:
     cp the debina/ folder from [debian] branch
     then remove the [debian] branch

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2010-09-25 16:16:25 +08:00

68 lines
1.9 KiB
Makefile
Executable File

#!/usr/bin/make -f
# This file is in the public domain.
# You may freely use, modify, distribute, and relicense it.
build clean install binary-arch binary-indep binary:
+dh --parallel $(opt_no_act) $@
override_dh_auto_clean:
test -e debian/xburst_stage1.bin || { \
echo >&2 see debian/README.source; \
exit 1; \
}
dh_auto_clean
sh debian/clean.sh
override_dh_auto_configure: configure
dh_auto_configure -- $(opt_optimize) $(opt_quiet) \
--disable-firmware LDFLAGS=-Wl,-z,defs
override_dh_auto_install:
dh_auto_install
: install firmware from source package
dh_install debian/xburst_stage1.bin usr/share/xburst-tools/
dh_install debian/xburst_stage2.bin usr/share/xburst-tools/
dh_install debian/stage1.bin usr/share/xburst-tools/
override_dh_installchangelogs:
dh_installchangelogs debian/changelog.upstream
opt_optimize = CFLAGS="-g -O2"
opt_no_act =
opt_quiet =
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
opt_optimize = CFLAGS="-g -O0"
endif
ifneq (,$(findstring n,$(MAKEFLAGS)))
opt_no_act = --no-act
endif
ifneq (,$(filter quiet,$(DEB_BUILD_OPTIONS)))
opt_quiet = --quiet
MAKEFLAGS += --quiet
endif
configure: configure.ac
AUTOMAKE="automake --foreign" autoreconf -is
firmware: configure
./configure --enable-firmware
$(MAKE) -C usbboot/src \
../xburst_stage1/xburst_stage1.bin \
../xburst_stage2/xburst_stage2.bin
$(MAKE) -C xbboot/host-app \
../target-stage1/stage1.bin
VERSION = 201007
debiandir_SQ = $(subst ','\'',$(dir $(lastword $(MAKEFILE_LIST))))
get-orig-source:
[ -f xburst-tools_$(VERSION).tar.bz2 ] || wget \
http://projects.qi-hardware.com/media/upload/xburst-tools/files/xburst-tools_$(VERSION).tar.bz2
mkdir -p get-orig-source
cd get-orig-source && tar -jxf ../xburst-tools_$(VERSION).tar.bz2
rm -rf get-orig-source/xburst-tools/debian get-orig-source/xburst-tools/.git
cd get-orig-source && tar -czf ../../xburst-tools_0.0+$(VERSION).orig.tar.gz .
rm -rf xburst-tools_$(VERSION).tar.bz2 get-orig-source