File: rules

package info (click to toggle)
autoconf-archive 20180313-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,144 kB
  • sloc: sh: 695; python: 62; makefile: 49
file content (20 lines) | stat: -rwxr-xr-x 659 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 $@

override_dh_auto_build:
	make all html

override_dh_auto_install:
	make install install-html DESTDIR=$(CURDIR)/debian/tmp

	# remove duplicated file
	rm -f $(CURDIR)/debian/tmp/usr/share/autoconf-archive/README
	rm -f $(CURDIR)/debian/tmp/usr/share/autoconf-archive/COPYING*
	rm -f $(CURDIR)/debian/tmp/usr/share/autoconf-archive/AUTHORS
	rmdir $(CURDIR)/debian/tmp/usr/share/autoconf-archive/
	# generated automatically
	rm -f $(CURDIR)/debian/tmp/usr/share/info/dir
	# move to better naming
	mv $(CURDIR)/debian/tmp/usr/share/doc/autoconf-archive/autoconf-archive.html $(CURDIR)/debian/tmp/usr/share/doc/autoconf-archive/html