File: rules

package info (click to toggle)
fdclone 3.01j-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,776 kB
  • sloc: ansic: 100,952; makefile: 4,508; sh: 1,500; sed: 232
file content (33 lines) | stat: -rwxr-xr-x 1,089 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export PKGDIR=`pwd`/debian/fdclone

%:
	dh $@
override_dh_auto_configure:
	$(MAKE) config
override_dh_auto_clean:
	$(MAKE) clean
	rm -f mkmfsed config.h mkkanji mkcat fd-cat.ja fd-cat.C mkmf.sed
override_dh_auto_build:
	$(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" PREFIX=/usr CONFDIR=/etc/fdclone
override_dh_install:
	$(MAKE) install PREFIX=$(PKGDIR)/usr \
			DATADIR=$(PKGDIR)/usr/share/fdclone \
			MANDIR=$(PKGDIR)/usr/share/man/man1 \
			EMANDIR=$(PKGDIR)/usr/share/man/man1 \
			JMANDIR=$(PKGDIR)/usr/share/man/ja/man1 \
			JCATDIR=$(PKGDIR)/usr/share/man/ja/man1 \
			DEFRC=$(PKGDIR)/etc/fdclone/fd2rc

	install -m 644 debian/addition/fd2rc.deb $(PKGDIR)/etc/fdclone/fd2rc
	rm -f $(PKGDIR)/usr/bin/fdsh
	cd $(PKGDIR)/usr/bin && ln -s fd fdsh
override_dh_installexamples:
	dh_installexamples _fdrc
override_dh_installman:
	dh_installman -a debian/addition/fdsh.1
override_dh_auto_install: