File: rules

package info (click to toggle)
cronolog 1.6.2%2Brpk-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 804 kB
  • sloc: ansic: 2,412; sh: 329; perl: 207; makefile: 37
file content (38 lines) | stat: -rwxr-xr-x 1,009 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
#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules file, written by Maxime Chatelle <mmyc@gmx.com>

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


# install destination
DESTDIR = $(CURDIR)/debian/cronolog

# std flags
CFLAGS += -g -Wall
#  must be used on architecture where sizeof(ptr*) > sizeof(int) (bug#323425)
CFLAGS += -D_XOPEN_SOURCE
#  enable large file support (more than 2GiB) (bug#304626)
CFLAGS += -D_FILE_OFFSET_BITS=64

export DEB_CFLAGS_MAINT_APPEND = -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64

%:
	dh $@

# move command to /usr/bin instead of /usr/sbin
override_dh_auto_install:
	dh_auto_install
	mkdir -p $(DESTDIR)/usr/bin
	mv $(DESTDIR)/usr/sbin/cronolog $(DESTDIR)/usr/bin
	mv $(DESTDIR)/usr/sbin/cronosplit $(DESTDIR)/usr/bin
	rmdir $(DESTDIR)/usr/sbin

# delete "dir" file, auto-generated by install-info
override_dh_installinfo:
	dh_installinfo
	rm -f $(DESTDIR)/usr/share/info/dir $(DESTDIR)cronolog/usr/share/info/dir.old

# disable testing
override_dh_auto_test: