]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Add an install target to the Makefile.
authorAndrew Ruthven <andrew@etc.gen.nz>
Thu, 21 Nov 2013 10:06:06 +0000 (23:06 +1300)
committerAndrew Ruthven <andrew@etc.gen.nz>
Thu, 21 Nov 2013 10:06:06 +0000 (23:06 +1300)
Makefile

index cfaa7f2856479a8949583b44cef9617e4c6e6cde..30b6c53b0b36baef87b60dd2ddba51ae9de64277 100755 (executable)
--- 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