2
# debian/rules for ytnef
3
# (C) 2003 Joshua Kwan <joshk@triplehelix.org>
5
# These are used for cross-compiling and for saving the configure script
6
# from having to guess our platform (since we know it already)
7
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
19
crossflags := --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
22
include /usr/share/dpatch/dpatch.make
24
build: patch-stamp build-stamp
27
./configure $(crossflags) --prefix=/usr --mandir=/usr/share/man
43
$(MAKE) install DESTDIR=$(CURDIR)/debian/ytnef
45
rm -f $(CURDIR)/debian/ytnef/usr/bin/ytnefprint
47
mv $(CURDIR)/debian/ytnef/usr/bin/ytnefprocess.pl $(CURDIR)/debian/ytnef/usr/bin/ytnef-filter
52
binary-arch: build install
56
dh_installchangelogs ChangeLog
67
binary: binary-indep binary-arch
68
.PHONY: build clean binary-indep binary-arch binary install