File: rules

package info (click to toggle)
semidef-oct 1%3A2003-9
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,388 kB
  • ctags: 250
  • sloc: fortran: 2,197; ansic: 686; cpp: 546; sh: 174; makefile: 61
file content (58 lines) | stat: -rwxr-xr-x 1,470 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#! /usr/bin/make -f
#                                                       -*- makefile -*-
# debian/rules file for the Debian/GNU Linux octave-sp package
# Copyright (C) 1998 - 2003 by Dirk Eddelbuettel <edd@debian.org>
# Copyright (C) 2005 - 2008 by Rafael Laboissiere <rafael@debian.org>

include /usr/share/dpatch/dpatch.make
include /usr/share/octave/debian/defs.make

PACKAGE	:= $(shell grep Package debian/control | sed 's/^Package: //')
debtmp	:= $(CURDIR)/debian/octave-sp
deboct  := $(OCTDIR)/sp
debm    := $(MDIR)/sp

get-orig-source: upstream
upstream:
	lynx ftp://ftp.eng.auburn.edu/pub/hodel

build:	build-stamp
build-stamp: patch-stamp
	dh_testdir
	cd SRC; $(MAKE) sp.oct ; \
		/bin/echo -e "1\n2\n3\n4\n5" | octave --silent --no-init-file ./demosp.m
	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	cd SRC; $(MAKE) -i clean
	dh_clean build-stamp $(PACKAGE)

binary-indep: build

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs $(MDIR) $(OCTDIR)
	install -s -m 0755 SRC/sp.oct $(debtmp)/$(OCTDIR)
	install -p -m 0644 $$(ls SRC/*.m | grep -v /sp.m) $(debtmp)/$(MDIR)
	dh_installdocs README* DOC/*.ps
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	octave-depends
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary:	binary-indep binary-arch

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

.PHONY: binary binary-arch binary-indep clean checkroot