File: rules

package info (click to toggle)
semidef-oct 1%3A2003-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,384 kB
  • ctags: 251
  • sloc: fortran: 2,197; ansic: 686; cpp: 546; sh: 86; makefile: 62
file content (67 lines) | stat: -rwxr-xr-x 1,508 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
59
60
61
62
63
64
65
66
67
#! /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>

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/tmp
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
	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)
	for i in SRC/*.m debian/*.m; do \
		install -p -m 0644 $$i  $(debtmp)/$(MDIR);\
        done
	dh_installdocs		README* DOC/*.ps
#	dh_installexamples	samples/*
#	dh_installmenu
#	dh_installinit
#	dh_installcron
#	dh_installmanpages
#	dh_undocumented
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
#	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	octave-depends
	dh_gencontrol
#	dh_makeshlibs
#	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