File: rules

package info (click to toggle)
slxfig 0.2.0~.35-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 804 kB
  • ctags: 498
  • sloc: sh: 2,516; ansic: 598; makefile: 196; php: 6
file content (32 lines) | stat: -rwxr-xr-x 990 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_MAKE_BUILD_TARGET := all RPATH=
DEB_MAKE_INSTALL_TARGET := install datarootdir=/usr/share	\
			   DESTDIR=$(DEB_DESTDIR)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) 
DEB_CONFIGURE_EXTRA_FLAGS += --with-slanglib=/usr/lib/$(DEB_HOST_MULTIARCH) \
  --with-slanginc=/usr/include

pkg = slxfig
ver = 0
svn = http://opensvn.csie.org/jedsoft/slxfig/trunk/
uscan_host = people.debian.org
uscan_dir = public_html

get-orig-source:
	SVNREV=$$(svn info $(svn) | grep Rev: | cut -f4 -d\ ) ;	\
	svn export -r$$SVNREV $(svn) $(pkg)-0~svn.$$SVNREV ;	\
	tar czf $(pkg)_$(ver)~svn.$$SVNREV.orig.tar.gz 		\
		$(pkg)-$(ver)~svn.$$SVNREV

build/slang-xfig::
	# Run examples
	-( cd examples/plot ;						     \
	   SLSH_PATH=/usr/share/slsh:/usr/share/slsh/local-packages:../../src \
	   $(MAKE) )

install-uscan-script:
	scp debian/slxfig.php $(uscan_host):$(uscan_dir)