File: rules

package info (click to toggle)
glimpse 4.18.7-12
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,832 kB
  • sloc: ansic: 37,606; makefile: 847; sh: 242; perl: 142
file content (32 lines) | stat: -rwxr-xr-x 1,074 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

TARGETDIR=`pwd`/debian/glimpse

# it's a hopeless endeavour to port
# all this messy ancient k&r code to c99
export DEB_CFLAGS_MAINT_APPEND = -std=gnu89 -fpermissive

override_dh_auto_configure:
	autoconf
	dh_auto_configure

override_dh_auto_build:
# 	These are the only variables that are free for user
	$(MAKE) DEBUGFLAGS="$(CFLAGS) $(CPPFLAGS)" OTHERLIBS="$(LDFLAGS)"

override_dh_auto_install:
	$(MAKE) install prefix=$(TARGETDIR)/usr
# 	move the internal, optional and undocumented programs into /usr/lib/glimpse
	install -g root -o root -m 0755 -d $(TARGETDIR)/usr/lib/glimpse
	mv $(TARGETDIR)/usr/bin/buildcast $(TARGETDIR)/usr/bin/cast $(TARGETDIR)/usr/bin/uncast \
	   $(TARGETDIR)/usr/bin/tbuild $(TARGETDIR)/usr/bin/wgconvert $(TARGETDIR)/usr/lib/glimpse

#	install (and rename) agrep README:
	install -g root -o root -m 0755 -d $(TARGETDIR)/usr/share/doc/glimpse
	install -g root -o root -m 0644 agrep/README \
		$(TARGETDIR)/usr/share/doc/glimpse/README.agrep

%:
	dh $@ --without autoreconf