File: rules

package info (click to toggle)
cronolog 1.6.2%2Brpk-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 748 kB
  • sloc: ansic: 2,409; sh: 329; perl: 207; makefile: 36
file content (37 lines) | stat: -rwxr-xr-x 936 bytes parent folder | download | duplicates (3)
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
#!/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


%:
	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: