-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1000 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.POSIX:
include config.mk
all:
install:
mkdir -p ${DESTDIR}${PREFIX}/sbin
mkdir -p ${DESTDIR}${MANPREFIX}/man5
mkdir -p ${DESTDIR}${MANPREFIX}/man8
sed "s/@VERSION@/${VERSION}/" rejmerge \
> ${DESTDIR}${PREFIX}/sbin/rejmerge
cp -f rejmerge.conf.5 ${DESTDIR}${MANPREFIX}/man5/
cp -f rejmerge.8 ${DESTDIR}${MANPREFIX}/man8/
chmod 0755 ${DESTDIR}${PREFIX}/sbin/rejmerge
chmod 0644 ${DESTDIR}${MANPREFIX}/man5/rejmerge.conf.5
chmod 0644 ${DESTDIR}${MANPREFIX}/man8/rejmerge.8
uninstall:
rm -f ${DESTDIR}${PREFIX}/sbin/rejmerge
rm -f ${DESTDIR}${MANPREFIX}/man5/rejmerge.conf.5
rm -f ${DESTDIR}${MANPREFIX}/man8/rejmerge.8
install_bashcomp:
mkdir -p ${DESTDIR}${BASHCOMPDIR}
cp -f bash_completion ${DESTDIR}${BASHCOMPDIR}/rejmerge
uninstall_bashcomp:
rm -f ${DESTDIR}${BASHCOMPDIR}/rejmerge
clean:
rm -f ${DIST}.tar.gz
dist: clean
git archive --format=tar.gz -o ${DIST}.tar.gz --prefix=${DIST}/ HEAD
.PHONY: all install uninstall install_bashcomp uninstall_bashcomp clean dist