Commit Diff
Diff:
cc1cb2c69b0bcab2e89920aed077f8eb7b17a619
e95ef821f51ab79fee69c99b07f69d23d91e63e1
Commit:
e95ef821f51ab79fee69c99b07f69d23d91e63e1
Tree:
c8c5d08314810b06c3c3e2d8759d646f7a4a0357
Author:
Fred. Galusik <dev1@galusik.xyz>
Committer:
Fred. Galusik <dev1@galusik.xyz>
Date:
Wed Oct 19 19:00:03 2016 UTC
Message:
version bump and take care of man
blob - a66228a1fd055dd0b9ef815a715801906239ff5e
blob + 6d5af5a8e9c2e317ab00862de5231d65c81446c4
--- Makefile
+++ Makefile
@@ -1,14 +1,22 @@
# snaps - play with OpenBSD snapshots
# See LICENSE for copyright
-VERSION=0.8.2
+VERSION=1.0
PREFIX=/usr/local
-tarball:
+man_clean:
+ @echo cleaning snaps.1
+ @rm -f snaps.1
+
+man: man_clean
+ @echo creating man page
+ @txt2tags snaps.t2t
+
+tarball: man
@echo creating tarball
@mkdir -p snaps-${VERSION}
- @cp -R AUTHORS LICENSE Makefile README.md snaps snaps-${VERSION}
+ @cp -R AUTHORS LICENSE Makefile README.md snaps.t2t snaps.1 snaps snaps-${VERSION}
@tar czvf snaps-${VERSION}.tar.gz snaps-${VERSION}
@rm -rf snaps-${VERSION}
@@ -17,10 +25,16 @@ install:
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f snaps ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/snaps
+ @echo installing man page to ${DESTDIR}${PREFIX}/usr/local/man/man1
+ @mkdir -p ${DESTDIR}${PREFIX}/usr/local/man/man1
+ @cp -f snaps.1 ${DESTDIR}${PREFIX}/usr/local/man/man1
+ @chmod 444 ${DESTDIR}${PREFIX}/usr/local/man/man1/snaps.1
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
@rm -f ${DESTDIR}${PREFIX}/bin/snaps
+ @echo removing man page from ${DESTDIR}${PREFIX}/usr/local/man/man1
+ @rm -f ${DESTDIR}${PREFIX}/usr/local/man/man1/snaps.1
-.PHONY: tarball install uninstall
+.PHONY: man_clean man tarball install uninstall
Frédéric Galusik