File: rules

package info (click to toggle)
whatweb 0.4.8~git20120606-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,956 kB
  • sloc: ruby: 53,738; sh: 577; makefile: 34
file content (30 lines) | stat: -rwxr-xr-x 752 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
#!/usr/bin/make -f
# -*- makefile -*-

DESTINATION = debian/whatweb

# override /usr default upstream location
override_dh_auto_build:
	dh_auto_build -- DESTDIR=$(DESTINATION)/usr

override_dh_install:
	dh_install

	# move my-plugins to /var/lib
	mkdir -p $(DESTINATION)/var/lib/whatweb
	mv $(DESTINATION)/usr/share/whatweb/my-plugins \
	$(DESTINATION)/var/lib/whatweb/

	rm -f $(DESTINATION)/usr/share/doc/whatweb/CHANGELOG
	rm -f $(DESTINATION)/usr/share/doc/whatweb/INSTALL
	rm -f $(DESTINATION)/usr/share/doc/whatweb/LICENSE

	# don't provide license for anemone as debian/copyright
	# mention MIT License
	rm -f $(DESTINATION)/usr/share/whatweb/lib/anemone/LICENSE

override_dh_auto_clean:
	dh_auto_clean -- DESTDIR=$(DESTINATION)/usr

%:
	dh $@