File: rules

package info (click to toggle)
libupnp 1.2.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,336 kB
  • ctags: 2,627
  • sloc: ansic: 26,038; makefile: 1,287; xml: 374
file content (65 lines) | stat: -rwxr-xr-x 1,754 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
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
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. 
# GNU copyright 1997 by Joey Hess.

# Uncomment this to turn on verbose mode. 
#export DH_VERBOSE=0

# This is the debhelper compatability version to use.
export DH_COMPAT=4

# This has to be exported to make some magic below work.
export DH_OPTIONS

build: 
	cd upnp && $(MAKE)
	cd upnp && $(MAKE) html

clean:
	dh_testdir
	dh_testroot
	-cd upnp && $(MAKE) clean
	-find -name .deps | xargs rm -rf
	-rm -f threadutil/src/*o
	-rm -f upnp/doc/upnpsdk.pdf
	-rm -f upnp/inc/ixml.h upnp/inc/FreeList.h upnp/inc/LinkedList.h upnp/inc/ThreadPool.h upnp/inc/TimerThread.h upnp/inc/iasnprintf.h upnp/inc/ithread.h
	dh_clean

binary-indep:

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	dh_installdocs
	# Runtime files
	install upnp/bin/libixml.so debian/libupnp0/usr/lib/libixml.so.0
	install upnp/bin/libthreadutil.so debian/libupnp0/usr/lib/libthreadutil.so.0
	install upnp/bin/libupnp.so debian/libupnp0/usr/lib/libupnp.so.0

	# -dev files
	install upnp/doc/html/* debian/libupnp-dev/usr/share/doc/libupnp-dev/html
	install upnp/inc/*.h debian/libupnp-dev/usr/include/upnp
	install upnp/doc/UPnP_Programming_Guide.pdf debian/libupnp-dev/usr/share/doc/libupnp-dev
	ln -s libixml.so.0 debian/libupnp-dev/usr/lib/libixml.so
	ln -s libthreadutil.so.0 debian/libupnp-dev/usr/lib/libthreadutil.so
	ln -s libupnp.so.0 debian/libupnp-dev/usr/lib/libupnp.so

	dh_strip
	dh_installchangelogs
	dh_installdocs README
	dh_link
	dh_compress
	dh_fixperms
	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps -ldebian/libupnp0/usr/lib
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary:  binary-indep binary-arch

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