File: rules

package info (click to toggle)
cdrw-taper 0.3-4.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 136 kB
  • ctags: 22
  • sloc: perl: 753; makefile: 18; sh: 11
file content (31 lines) | stat: -rwxr-xr-x 943 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/buildcore.mk

# Don't run tests
DEB_MAKE_CHECK_TARGET =

# Stop the build rules from trying to build stuff
build-arch build-indep:

# The install rule just copies stuff
common-install-indep::
	install -o root -g root -m 755 -d $(DEB_DESTDIR)/usr/lib/amanda
	install -o root -g root -m 755 src/taper $(DEB_DESTDIR)/usr/lib/amanda
	install -o root -g root -m 644 src/taperlib.pm $(DEB_DESTDIR)/usr/lib/amanda

	install -o root -g root -m 755 -d $(DEB_DESTDIR)/usr/sbin
	install -o root -g root -m 755 src/amlabel-cdrw $(DEB_DESTDIR)/usr/sbin

	install -o root -g root -m 770 -d $(DEB_DESTDIR)/var/cache/cdrw-taper

	install -o root -g root -m 755 -d $(DEB_DESTDIR)/etc
	install -o root -g root -m 644 cdrw-taper.conf $(DEB_DESTDIR)/etc

	mv doc/CHANGES doc/changelog

clean::
	if test -f doc/changelog; then \
		mv doc/changelog doc/CHANGES; \
	fi