chiark / gitweb /
autopkgtests: consistently say "echo ok." at end of tests
[dgit.git] / Makefile
index ed5177404952e6c90be1d2eb6b6fa2838cc023ef..fc49cd0264b85732c29de05148e7f71b80d7ec85 100644 (file)
--- a/Makefile
+++ b/Makefile
 INSTALL=install
 INSTALL_DIR=$(INSTALL) -d
 INSTALL_PROGRAM=$(INSTALL) -m 755
+INSTALL_DATA=$(INSTALL) -m 644
+
 prefix?=/usr/local
 
+bindir=$(prefix)/bin
+mandir=$(prefix)/share/man
+man1dir=$(mandir)/man1
+
 PROGRAMS=dgit
+MAN1PAGES=dgit.1
 
 all:
 
 install:       installdirs
-       $(INSTALL_PROGRAM) $(PROGRAMS) $(DESTDIR)$(prefix)/bin
+       $(INSTALL_PROGRAM) $(PROGRAMS) $(DESTDIR)$(bindir)
+       $(INSTALL_DATA) $(MAN1PAGES) $(DESTDIR)$(man1dir)
 
 installdirs:
-       $(INSTALL_DIR) $(DESTDIR)$(prefix)/bin
+       $(INSTALL_DIR) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
 
 check installcheck: