File: rules

package info (click to toggle)
libmpd 0.12.0-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,580 kB
  • ctags: 571
  • sloc: sh: 8,060; ansic: 4,906; makefile: 67
file content (23 lines) | stat: -rwxr-xr-x 609 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
#!/usr/bin/make -f
DEB_BUILDDIR:=++build-dir
DEB_DH_INSTALL_ARGS:=--sourcedir=debian/tmp

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

SRC_NAME:=libmpd
LIB_NAME:=$(SRC_NAME)0
DEV_NAME:=$(SRC_NAME)-dev

# remove the empty README
binary-post-install/$(LIB_NAME)::
	rm -f debian/$(LIB_NAME)/usr/share/doc/$(LIB_NAME)/README

binary-post-install/$(DEV_NAME)::
	rm -rf debian/$(DEV_NAME)/usr/share/doc/$(DEV_NAME)
	ln -sf $(LIB_NAME) debian/$(DEV_NAME)/usr/share/doc/$(DEV_NAME)

clean::
	rm -f intltool-extract intltool-merge intltool-update
	rm -rf $(DEB_BUILDDIR)