File: rules

package info (click to toggle)
semidef-oct 1998.09-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,384 kB
  • ctags: 255
  • sloc: fortran: 2,197; ansic: 686; cpp: 535; makefile: 82
file content (67 lines) | stat: -rwxr-xr-x 1,631 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 by Dirk Eddelbuettel <edd@debian.org>

package	:= $(shell grep Package debian/control | sed 's/^Package: //')
version	:= $(shell head -1 debian/changelog | \
			perl -nle 'm/\S+\s+\((\S+)\)/ && print $$1')
debtmp	:= $(shell pwd)/debian/tmp
deboct  := $(shell echo 'printf("%s\n", \
			octave_config_info ("localoctfilepath"));' | \
			octave -q | sed -e 's|^/||' -e 's|//||')

foo:
	@echo $(deboct)

build:
	dh_testdir
	cd SRC; $(MAKE) -f ../debian/Makefile sp.oct
	touch build

clean:
	dh_testdir
	dh_testroot
	cd SRC; $(MAKE) -i -f ../debian/Makefile clean
	dh_clean build $(package)

binary-indep: build

binary-arch: build
#	dh_testversion
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs 			usr/share/octave/site/m/sp \
					$(deboct)/sp
	install -m 0755 SRC/sp.oct 	$(debtmp)/$(deboct)/sp
	for i in SRC/*.m debian/*.m; do \
		install -m 0644 $$i     $(debtmp)/usr/share/octave/site/m/sp/;\
        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
	dh_gencontrol
#	dh_makeshlibs
#	dh_md5sums
	dh_builddeb

# Below here is fairly generic really

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