SourceForge has been redesigned. Learn more.
Close

Diff of /debian/rules [000000] .. [591b21]  Maximize  Restore

Switch to unified view

a b/debian/rules
1
#!/usr/bin/make -f
2
#-*- makefile -*-
3
4
#export DH_VERBOSE=1
5
export DH_COMPAT=4
6
7
PACKAGE=$(shell dh_listpackages)
8
9
ifndef PERL
10
PERL = /usr/bin/perl
11
endif
12
13
ifndef DESTDIR
14
DESTDIR=..
15
endif
16
17
TMP     =`pwd`/debian/$(PACKAGE)
18
DOCDIR   = $(TMP)/usr/share/doc/pdl-linearalgebra
19
20
OPTIMIZE = -O3
21
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
22
OPTIMIZE += -g
23
endif
24
25
clean:
26
  dh_testdir
27
  dh_testroot
28
  -rm -f build-stamp
29
  -$(MAKE) realclean
30
  dh_clean
31
32
build: build-stamp
33
build-stamp:
34
  dh_testdir
35
36
  $(PERL) Makefile.PL INSTALLDIRS=vendor
37
  $(MAKE) all OPTIMIZE="$(OPTIMIZE)"
38
  touch build-stamp
39
40
41
install: 
42
  dh_testdir
43
  dh_testroot
44
  dh_clean -k
45
  dh_installdirs
46
47
  $(MAKE) install PREFIX=$(TMP)/usr
48
49
  find $(TMP) \( -name '*.pm' -o -name '*.pl' \) -print0 | xargs --null --no-run-if-empty \
50
    $(PERL) -i -pe '$$_ = "#!/usr/bin/perl$$1\n" if m|^#!.*/perl(.*)$$|;'
51
52
# install -d $(DOCDIR)/examples
53
# cp -ra eg/* $(DOCDIR)/examples
54
# chmod a-x $(DOCDIR)/examples/*
55
# find $(DOCDIR)/examples -type f -print0 | xargs --null --no-run-if-empty \
56
#   $(PERL) -i -pe '$$_ = "#!/usr/bin/perl$$1\n" if m|^#!.*/perl(.*)$$|;'
57
# -gzip -9rf $(DOCDIR)/examples
58
  -cd debian; find -type d -empty -exec rmdir \{} \;
59
60
61
# Build architecture-independent files here.
62
binary-indep: build install
63
# We have nothing to do by default.
64
65
# Build architecture-dependent files here.
66
binary-arch: build install
67
  dh_testdir
68
  dh_testroot
69
  dh_installdocs README
70
  dh_installman
71
  dh_installchangelogs 
72
  dh_link
73
  dh_strip
74
  dh_compress
75
  dh_fixperms
76
  dh_installdeb
77
  dh_perl 
78
  dh_shlibdeps
79
  dh_gencontrol
80
  dh_md5sums
81
  dh_builddeb --destdir=$(DESTDIR)
82
83
binary: binary-indep binary-arch
84
.PHONY: build clean binary-indep binary-arch binary