File: rules

package info (click to toggle)
yacas 1.3.6-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 7,176 kB
  • ctags: 3,520
  • sloc: cpp: 13,960; java: 12,602; sh: 11,401; makefile: 552; perl: 517; ansic: 381
file content (107 lines) | stat: -rwxr-xr-x 2,826 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/bin/make -f

package=yacas
#libpackage=libyacas
#proteus-package=yacas-proteus
package-doc=yacas-doc

ddir=`pwd`/debian/$(package)
#ddir-lib=`pwd`/debian/$(libpackage)
#ddir-proteus=`pwd`/debian/$(proteus-package)
ddir-dic=`pwd`/debian/$(package-doc)

arch=`dpkg --print-architecture`
os = 'linux'
ABOVE=$(shell pwd)

INSTALL =/usr/bin/install
GZIP    =/bin/gzip
INSTALL_DATA =$(INSTALL) -m 644 -o root -g root
GZIP_DATA =$(GZIP) -9

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) -fpermissive

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: $(QUILT_STAMPFN)
build-stamp:
	dh_testdir
	./makemake
	CXXFLAGS="$(CXXFLAGS)" ./configure --prefix=/usr --with-numlib=native \
	--enable-server --sysconfdir=/etc --disable-rpath
	CXXFLAGS="$(CXXFLAGS)" $(MAKE) sysconfdir=/etc
	make texdocs
	touch build-stamp
clean:
#	$(checkdir)
	dh_testdir
	dh_testroot
	-rm -f build-stamp install-stamp
	[ ! -f Makefile ] || $(MAKE) distclean
	find . \( -name config.sub -o -name config.guess \) -print0 | xargs -0 -r rm -f \;
	dh_clean

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	dh_installdocs -a
	$(MAKE) prefix=`pwd`/debian/yacas/usr \
		datarootdir=`pwd`/debian/yacas/usr/share \
		scriptdir=`pwd`/debian/yacas/usr/share/yacas/scripts \
		sysconfdir=`pwd`/debian/yacas/etc install
	rm -rf debian/yacas/usr/share/yacas/documentation
	cp $(CURDIR)/manmake/*.pdf $(CURDIR)/debian/yacas-doc/usr/share/doc/yacas-doc/
		#html htmldir=`pwd`/debian/yacas/usr/share/yacas/documentation \
	above=`pwd`
	#html $(INSTALL) -d debian/yacas-doc/usr/share/doc/$(package-doc)/html
	#html -mv debian/yacas/usr/share/yacas/documentation/* debian/yacas-doc/usr/share/doc/$(package-doc)/html/.
	#html cp $(CURDIR)/manmake/*.js $(CURDIR)/debian/yacas-doc/usr/share/doc/yacas-doc/html/
	touch install-stamp

binary-indep: build install
	dh_testdir -i
	dh_testroot -i
	dh_installdirs -i
	dh_installdocs -i
	dh_installchangelogs -i
	dh_strip -i
	dh_compress -i -X.pdf
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i


binary-arch: build install
	dh_testdir -a
	dh_testroot -a
	dh_installdirs -a
	dh_installdocs -pyacas AUTHORS TODO
	-rm $(ddir)/usr/bin/ytxt2tex
	dh_installchangelogs -a
	-rm -rf $(ddir)/usr/share/yacas/manmake
	dh_installmenu -a
	docbook-to-man debian/yacas.sgml > debian/yacas.1
	dh_link usr/share/man/man1/yacas.1 usr/share/man/man1/yacas_client.1
	dh_installman -pyacas debian/yacas.1
	dh_makeshlibs -pyacas
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install