File: rules

package info (click to toggle)
ngs-js 0.2.5-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,800 kB
  • ctags: 2,977
  • sloc: ansic: 34,455; sh: 4,827; perl: 261; makefile: 208
file content (91 lines) | stat: -rwxr-xr-x 2,426 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
#! /usr/bin/make -f
#
# Last Updated: Fri, 23 Oct 1998 22:35:55 -0700 by Brian Bassett

build: build-stamp
build-stamp:
	dh_testdir
	./configure --prefix=/usr --with-curses --enable-static --enable-shared --with-pthreads

#	# begin less nasty libtool hack
#	sed < libtool > libtool.hack \
#	-e 's/^hardcode_libdir_flag_spec.*$$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ -lc -lncurses "/' \
#	-e '/^archive_cmds="/s/"$$/ \\$$deplibs"/'
#	mv libtool.hack libtool
#	chmod 755 libtool
#	# end less nasty libtool hack

	# begin more nasty libtool hack
	make -C src libjs.la
	cd src && gcc -shared -Wl,-soname -Wl,libjs.so.0 -o .libs/libjs.so.0.0.0 *.lo -lpthread -lncurses -ldl -lm -lc
	make -C src js
	cd src && gcc -g -O2 -D_REENTRANT -rdynamic -o .libs/js main.o getopt.o getopt1.o .libs/libjs.so -lpthread -lncurses -ldl -lm
	# end more nasty libtool hack

	make
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	-make distclean
	-rm -f config.log
	-rm -f jsdas/jsdas.js{,c}
	-rm -f jsas/jsas.js{,c}
	-rm -f jswrap/jswrap.js{,c}
	-rm -f build-stamp
	dh_clean

binary-indep:
# Nothing to build

# Build architecture-dependent files here.
binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	install -m 755 src/.libs/js debian/tmp/usr/bin
	install -m 755 jsdas/jsdas debian/tmp/usr/bin
	install -m 755 jsas/jsas debian/tmp/usr/bin
	install -m 644 docs/js.info* debian/tmp/usr/share/info

	install -m 755 src/.libs/libjs.so.0.0.0 debian/libjs0/usr/lib/libjs.so.0.2.5
	ln -s libjs.so.0.2.5 debian/libjs0/usr/lib/libjs.so.0

	install -m 644 src/.libs/libjs.a debian/libjs0-dev/usr/lib
	ln -s libjs.so.0 debian/libjs0-dev/usr/lib/libjs.so
	install -m 644 src/js{,int}.h debian/libjs0-dev/usr/include
	install -m 644 jsconfig.h debian/libjs0-dev/usr/include
	install -m 755 jswrap/jswrap debian/libjs0-dev/usr/bin

	dh_installdocs
	dh_installexamples
#	dh_installmenu
#	dh_installinit
#	dh_installcron
	dh_installmanpages -pngs-js
#	dh_undocumented
	dh_installchangelogs ChangeLog
	dh_strip
	dh_compress
	dh_fixperms
	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_md5sums
	dh_builddeb

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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

# Local Variables:
# mode: makefile
# End: