24 lines
851 B
Makefile
24 lines
851 B
Makefile
VERSION = 0.1.0
|
|
|
|
PREFIX = /usr/local
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
all: install
|
|
|
|
install:
|
|
@echo installing executables to ${DESTDIR}${PREFIX}/bin
|
|
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
@cp -f immaginibuongiorno.sh ${DESTDIR}${PREFIX}/bin/immaginibuongiorno
|
|
@chmod 755 ${DESTDIR}${PREFIX}/bin/immaginibuongiorno
|
|
@echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
|
|
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
|
@sed "s/VERSION/${VERSION}/g" < immaginibuongiorno.1 > ${DESTDIR}${MANPREFIX}/man1/immaginibuongiorno.1
|
|
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/immaginibuongiorno.1
|
|
|
|
uninstall:
|
|
@echo removing executables from ${DESTDIR}${PREFIX}/bin
|
|
@rm -f ${DESTDIR}${PREFIX}/bin/immaginibuongiorno
|
|
@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
|
|
@rm -f ${DESTDIR}${MANPREFIX}/man1/immaginibuongiorno.1
|
|
|
|
.PHONY: all t install uninstall
|