From b3bcd5f8ca17efe3425679a52a45895232ba8f85 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Thu, 21 Nov 2013 23:06:06 +1300 Subject: [PATCH] Add an install target to the Makefile. --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 -- 2.30.2