Commits

William Giokas committed d522fac

updated makefile

Puts the man page in the source dist now

Signed-off-by: William Giokas <1007380@gmail.com>

  • Participants
  • Parent commits b39d02c

Comments (0)

Files changed (1)

 
 SRC = ${NAME}.c
 OBJ = ${SRC:.c=.o}
+DOC = ${NAME}.1
 
 all: options ${NAME}
 
 	@echo creating dist tarball
 	@mkdir -p ${NAME}-${VERSION}
 	@cp -R Makefile config.mk LICENSE \
-		${SRC} ${NAME}-${VERSION}
+		${SRC} ${DOC} ${NAME}-${VERSION}
 	@tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION}
 	@gzip ${NAME}-${VERSION}.tar
 	@rm -rf ${NAME}-${VERSION}
 	@chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME}
 	@echo installing manual page to ${DESTDIR}${PREFIX}/man1
 	@mkdir -p  ${DESTDIR}${MANPREFIX}/man1
-	@sed "s/VERSION/${VERSION}/g" < dwmstatus.1 > ${DESTDIR}${MANPREFIX}/man1/dwmstatus.1
-	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwmstatus.1
+	@sed "s/VERSION/${VERSION}/g" < ${DOC} > ${DESTDIR}${MANPREFIX}/man1/${DOC}
+	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/${DOC}
 
 uninstall:
 	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
 	@rm -f ${DESTDIR}${PREFIX}/bin/${NAME}
 	@echo removing manual page from ${DESTDIR}${PREFIX}/man1
-	@rm -f ${DESTDIR}${MANPREFIX}/man1/dwmstatus.1
+	@rm -f ${DESTDIR}${MANPREFIX}/man1/${DOC}
 
 
 .PHONY: all options clean dist install uninstall