#!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk DEB_COMPRESS_EXCLUDE := .pdf CURDIR := $(shell pwd) ifeq ($(LD_LIBRARY_PATH),) export LD_LIBRARY_PATH:= $(CURDIR)/usr/lib/kylix3 else export LD_LIBRARY_PATH:= $(CURDIR)/usr/lib/kylix3:$(LD_LIBRARY_PATH) endif build-stamp: rm -rf usr/ tmp/ mkdir -p usr/ tmp/ @for pkg in paquetes/*; do \ echo " * Descomprimiendo paquete $$pkg"; \ dpkg --extract $$pkg tmp/; \ done mv tmp/usr/* usr/ rm -rf usr/share rm -rf tmp/ mkdir -p usr/bin/ install -m 755 ejecutables/* usr/bin/ mkdir -p usr/lib/robolinux/ install -m 755 firmware/* usr/lib/robolinux/ touch build-stamp build/robolinux:: build-stamp binary-install/robolinux:: dh_installudev --priority=45 --name=legousbtower install -m 755 debian/udev-helper.sh $(CURDIR)/debian/robolinux/lib/udev/robolinux-helper rm -f $(CURDIR)/debian/robolinux/usr/share/doc/robolinux/Manual* install -m 644 "Manual del RoboLinux.pdf" $(CURDIR)/debian/robolinux/usr/share/doc/robolinux/manual_robolinux.pdf install -m 755 debian/robolinux.sh $(CURDIR)/debian/robolinux/usr/bin/robolinux # clean svn dirs find $(CURDIR)/debian/robolinux -type d -name .svn | xargs rm -rf --