William Giokas avatar William Giokas committed d522fac

updated makefile

Puts the man page in the source dist now

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

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}
 	@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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.