1 |
PREFIX ?= /usr/pkg |
2 |
MANDIR ?= ${PREFIX}/man |
3 |
|
4 |
build: generate |
5 |
|
6 |
clean: |
7 |
rm -f create-cvs |
8 |
generate: |
9 |
@sed "s#%%PREFIX%%#${PREFIX}#" create-cvs.in > create-cvs |
10 |
|
11 |
install: |
12 |
@install -m0755 create-cvs ${DESTDIR}${PREFIX}/bin/create-cvs |
13 |
@install -m0755 create-cvs-repo ${DESTDIR}${PREFIX}/bin/create-cvs-repo |
14 |
@install -m0755 modify-cvsroot-permission ${DESTDIR}${PREFIX}/bin/modify-cvsroot-permission |
15 |
@install -m0644 man/create-cvs.1 ${DESTDIR}${MANDIR}/man1/create-cvs.1 |
16 |
@install -m0644 man/create-cvs-repo.1 ${DESTDIR}${MANDIR}/man1/create-cvs-repo.1 |
17 |
uninstall: |
18 |
rm -f ${DESTDIR}${PREFIX}/bin/create-cvs* |
19 |
rm -f ${DESTDIR}${MANDIR}/man1/create-cvs* |
20 |
|