2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatability version to use.
11
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
15
configure: configure-stamp
18
# Add here commands to configure the package.
22
build: configure-stamp build-stamp
26
# Add here commands to compile the package.
28
$(MAKE) World CDEBUGFLAGS=$(CFLAGS)
29
#/usr/bin/docbook-to-man debian/plotmtv.sgml > plotmtv.1
36
rm -f build-stamp configure-stamp
38
# Add here commands to clean up after the build process.
41
rm -f debian/plotmtv.1x
42
rm -f */Makefile Makefile
52
# Add here commands to install the package into debian/plotmtv.
53
$(MAKE) install DESTDIR=$(CURDIR)/debian/plotmtv
54
install -m 644 Docs/plotmtv.man debian/plotmtv.1x
55
#Hack tp get the right start in DataFormat.ps
56
install -D -m 644 Docs/DataFormat.ps.gz \
57
debian/plotmtv/usr/share/doc/plotmtv/DataFormat.ps.gz
58
gunzip debian/plotmtv/usr/share/doc/plotmtv/DataFormat.ps.gz
59
cd debian/plotmtv/usr/share/doc/plotmtv;\
60
sed -e 1d DataFormat.ps > DataFormat.new;\
61
rm DataFormat.ps; echo '%!PS-Adobe-2.0' > DataFormat.ps; \
62
cat DataFormat.new >> DataFormat.ps; rm DataFormat.new
64
# Build architecture-independent files here.
65
binary-indep: build install
66
# We have nothing to do by default.
68
# Build architecture-dependent files here.
69
binary-arch: build install
74
dh_installexamples Tests/*.mtv
75
install Tests/run.sh debian/plotmtv/usr/share/doc/plotmtv/examples
87
dh_compress -X.mtv -X.sh
89
# You may want to make some executables suid here.
99
binary: binary-indep binary-arch
100
.PHONY: build clean binary-indep binary-arch binary install configure