File: rules

package info (click to toggle)
fcm 2021.05.01-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,788 kB
  • sloc: perl: 26,014; sh: 10,510; javascript: 4,043; f90: 774; python: 294; ansic: 29; makefile: 14; cpp: 5
file content (20 lines) | stat: -rwxr-xr-x 537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

%:
	dh $@

PERL_VERSION:=5.20

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
INSTDIR:=debian/tmp
PERLDIR:=$(LIBDIR)/perl/$(PERL_VERSION)

override_dh_auto_install:
	mkdir -p $(INSTDIR)/$(PERLDIR)
	cp -a lib/* $(INSTDIR)/$(PERLDIR)

override_dh_installdocs:
	dh_installdocs
	rm ./debian/fcm/usr/share/doc/fcm/etc/bootstrap/js/bootstrap.js
	ln -s /usr/share/javascript/bootstrap/js/bootstrap.js ./debian/fcm/usr/share/doc/fcm/etc/bootstrap/js/bootstrap.js