File: rules

package info (click to toggle)
gnuplot 3.5beta6.340-5
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 4,792 kB
  • ctags: 4,205
  • sloc: ansic: 41,878; asm: 539; makefile: 498; objc: 379; csh: 297; sh: 277; pascal: 194; perl: 138; lisp: 88
file content (71 lines) | stat: -rwxr-xr-x 2,601 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
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

package=gnuplot

build:
	$(checkdir)
	./configure --prefix=/usr --without-gnu-readline --without-lasergnu  --without-gd \
                    --datadir="/usr/share/gnuplot" --libexecdir="/usr/lib/gnuplot"
	make CFLAGS="-O2 -g -Wall"
	(cd docs; make doc2tex; doc2tex gnuplot.doc gp.tex) 
	(cd docs; sed "2740s/ccl/rccl/g" < gp.tex > gnuplot.tex; rm gp.tex)
	(cd docs; make info html tutorial gnuplot.ps gpcard.dvi)
	(cd docs; dvips gpcard.dvi -o gpcard.ps)
	mv docs/latextut/tutorial.dvi docs/latex_tutorial.dvi
	cp 0README README.gnuplot
	cp 0FAQ gnuplot-faq.txt
	head -c1m WhatsNew README.3p5 README.3p4 README.3p3 README.3p2 README.3p1 History > changelog
	touch build

clean:
	$(checkdir)
	rm -f build
	if [ -f Makefile ]; then mv -f docs/makefile.dst docs/makefile; fi
	if [ -f Makefile ]; then mv -f docs/latextut/makefile.dst docs/latextut/makefile; fi
	if [ -f Makefile ]; then make distclean; fi
	rm -f `find . -name "*~"`
	rm -f changelog
	rm -rf debian/tmp debian/files* core debian/substvars
	rm -f docs/*.dvi README.gnuplot gnuplot-faq.txt docs/gnuplot.html docs/doc2html 
	rm -f docs/doc2info docs/latextut/done docs/latextut/tutorial.aux 

binary-indep:	checkroot build
	$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch:	checkroot build
	$(checkdir)
	-rm -rf debian/tmp
	install -d debian/tmp
	cd debian/tmp && install -d `cat ../dirs`
	make install prefix=`pwd`/debian/tmp/usr datadir=`pwd`/debian/tmp/usr/share/gnuplot \
                     libexecdir=`pwd`/debian/tmp/usr/lib/gnuplot
	chmod u-s `pwd`/debian/tmp/usr/bin/gnuplot
	mkdir -p `pwd`/debian/tmp/etc
	install -g root -o root -m 644 `pwd`/debian/gnuplot.conf `pwd`/debian/tmp/etc/
	mkdir -p `pwd`/debian/tmp/usr/sbin
	install -g root -o root -m 755 `pwd`/debian/gnuplotconfig `pwd`/debian/tmp/usr/sbin/
	install -g root -o root -m 644 `pwd`/debian/gnuplotconfig.8 `pwd`/debian/tmp/usr/man/man8/
	debstd -m changelog README.3d README.iso README.mf README.pic docs/gnuplot.html docs/*.ps docs/latex_tutorial.dvi README.gnuplot gnuplot-faq.txt
	dpkg-gencontrol
	chown -R root.root debian/tmp
	chmod -R go=rX debian/tmp
	dpkg --build debian/tmp ..

define checkdir
	test -f debian/rules
endef

# Below here is fairly generic really

binary:		binary-indep binary-arch

checkroot:
	$(checkdir)
	test root = "`whoami`"

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