diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 41 |
1 files changed, 20 insertions, 21 deletions
@@ -28,30 +28,29 @@ debug: clean ${MAKE} CFLAGS="${DEBUG}" all clean: - @echo cleaning - @rm -f xml2tsv ${OBJ} + rm -f xml2tsv ${OBJ} install: all - @echo installing executable to ${DESTDIR}${BINDIR} - @mkdir -p "${DESTDIR}${BINDIR}" - @cp -f xml2tsv "${DESTDIR}${BINDIR}" - @chmod 755 "${DESTDIR}${BINDIR}/xml2tsv" - @echo installing man page to ${DESTDIR}${MANPREFIX} - @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 - @for f in ${MAN1}; do chmod 644 ${DESTDIR}${MANPREFIX}/man1/$$f; done + # installing executable to ${DESTDIR}${BINDIR} + mkdir -p "${DESTDIR}${BINDIR}" + cp -f xml2tsv "${DESTDIR}${BINDIR}" + chmod 755 "${DESTDIR}${BINDIR}/xml2tsv" + # installing man page to ${DESTDIR}${MANPREFIX} + mkdir -p ${DESTDIR}${MANPREFIX}/man1 + cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 + for f in ${MAN1}; do chmod 644 ${DESTDIR}${MANPREFIX}/man1/$$f; done uninstall: - @echo removing executable file from ${DESTDIR}${BINDIR} - @rm -f "${DESTDIR}${BINDIR}/xml2tsv" - @echo removing man pages ${DESTDIR}${MANPREFIX} - @for f in ${MAN1}; do rm -f ${DESTDIR}${MANPREFIX}/man1/$$f; done + # removing executable file from ${DESTDIR}${BINDIR} + rm -f "${DESTDIR}${BINDIR}/xml2tsv" + # removing man pages ${DESTDIR}${MANPREFIX} + for f in ${MAN1}; do rm -f ${DESTDIR}${MANPREFIX}/man1/$$f; done dist: clean - @echo "making a tarball" - @mkdir -p ./xml2tsv-${VERSION} - @rm -rf ./xml2tsv-${VERSION}/* - @cp -R ${DISTFILES} ./xml2tsv-${VERSION}/ - @tar -cf xml2tsv-${VERSION}.tar ./xml2tsv-${VERSION} - @gzip xml2tsv-${VERSION}.tar - @rm -rf xml2tsv-${VERSION} + # make a tarball + mkdir -p ./xml2tsv-${VERSION} + rm -rf ./xml2tsv-${VERSION}/* + cp -R ${DISTFILES} ./xml2tsv-${VERSION}/ + tar -cf xml2tsv-${VERSION}.tar ./xml2tsv-${VERSION} + gzip xml2tsv-${VERSION}.tar + rm -rf xml2tsv-${VERSION} |