From: Andrew Ruthven Date: Thu, 21 Nov 2013 10:06:06 +0000 (+1300) Subject: Add an install target to the Makefile. X-Git-Tag: 0.10.5~2 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3bcd5f8ca17efe3425679a52a45895232ba8f85;p=mythtv-status.git Add an install target to the Makefile. --- diff --git a/Makefile b/Makefile index cfaa7f2..30b6c53 100755 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ #!/usr/bin/make -f +BINDIR=$(DESTDIR)/usr/bin +MANDIR=$(DESTDIR)/usr/man + package=mythtv-status releases=sid release=sid @@ -58,6 +61,16 @@ publish: $(RELEASE_FILES) upload: $(RELEASE_FILES) for release in $(releases); do cd build/$$release; dput $(package)_$(deb_version)*.changes; done +install: + install -d $(BINDIR) + install -d $(MANDIR)/man1 + install -m 775 bin/mythtv-status $(BINDIR) + install -m 775 bin/mythtv_recording_now $(BINDIR) + install -m 775 bin/mythtv_recording_soon $(BINDIR) + pod2man bin/mythtv-status > $(MANDIR)/man1/mythtv-status.1 + install -m 644 man/mythtv_recording_now.1 $(MANDIR)/man1 + install -m 644 man/mythtv_recording_soon.1 $(MANDIR)/man1 + test: PERL_DL_NONLAZY=1 perl "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE))" $(TEST_FILES) @@ -66,4 +79,4 @@ clean: @rm -rf build @rm -f ../$(package)*.changes ../$(package)*.dsc ../$(package)*.tar.gz ../$(package)*.deb -.PHONY: release clean sponsor +.PHONY: release clean sponsor install test