summaryrefslogtreecommitdiff
path: root/Makefile
blob: daf2a60619737e19f72c539ea42783e69582a752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DESTDIR        ?=
prefix         	= /usr
bindir       	= ${prefix}/bin
etcdir       	= /etc
mandir          = ${prefix}/man

INSTALL         = install 
INSTALL_EXE     = ${INSTALL} -D
INSTALL_DATA    = ${INSTALL} -m 0644 -D

install:
	mkdir -p $(DESTDIR)$(etcdir)/etckeeper/
	$(INSTALL_DATA) etckeeper.conf $(DESTDIR)$(etcdir)/etckeeper/etckeeper.conf
	cp -a hg $(DESTDIR)$(etcdir)/etckeeper/
	cp -a git $(DESTDIR)$(etcdir)/etckeeper/
	chown root.root -R $(DESTDIR)$(etcdir)/etckeeper/
	$(INSTALL_EXE) etckeeper $(DESTDIR)$(bindir)/etckeeper
	$(INSTALL_DATA) apt.conf $(DESTDIR)$(etcdir)/apt/apt.conf.d/05etckeeper
	$(INSTALL_DATA) etckeeper.1 $(DESTDIR)$(mandir)/man1/etckeeper.1
	$(INSTALL_DATA) bash_completion $(DESTDIR)$(etcdir)/bash_completion.d/etckeeper