File: rules

package info (click to toggle)
activeldap 1.0.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,072 kB
  • ctags: 3,792
  • sloc: ruby: 21,452; makefile: 13; sh: 1
file content (22 lines) | stat: -rwxr-xr-x 822 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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/ruby-pkg-tools/1/class/ruby-common.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk


RUBY_ARCHALLDIR=/usr/lib/ruby/1.8

install/libactiveldap-ruby1.8::
	mkdir -p debian/$(cdbs_curpkg)/$(RUBY_ARCHALLDIR)
	cp -r lib/* debian/$(cdbs_curpkg)/$(RUBY_ARCHALLDIR)/
	find debian/$(cdbs_curpkg)/$(RUBY_ARCHALLDIR)/ -type f -exec chmod a-x {} \;

binary-install/libactiveldap-ruby-doc::
	tar -cz -C debian/$(cdbs_curpkg)/usr/share/doc/libactiveldap-ruby-doc/examples/ --remove-files \
		-f debian/$(cdbs_curpkg)/usr/share/doc/libactiveldap-ruby-doc/examples/al-admin.tgz al-admin

$(patsubst %,binary-predeb/%,$(DEB_PACKAGES)) ::
	find debian/$(cdbs_curpkg) -depth -name ".arch-ids" -exec rm -rf {} \;