Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make: Add makefile for those not fortunate enough to be using Arch

  • Loading branch information...
commit e6d7c4287b3a2a40a95d0ba39bdcb0327ef5324d 1 parent d393bac
@falconindy authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 Makefile
View
25 Makefile
@@ -0,0 +1,25 @@
+VERSION=1.0
+
+all: doc
+doc: squashfu.1
+
+install: all
+ @echo "installing squashfu to ${DESTDIR}/usr/bin"
+ @cp squashfu ${DESTDIR}/usr/bin
+ @chmod 755 ${DESTDIR}/usr/bin/squashfu
+ @cp squashfu.conf ${DESTDIR}/etc
+ @chmod 644 ${DESTDIR}/etc/squashfu.conf
+ @echo "installing man page to ${DESTDIR}${MANPREFIX}/man1"
+ @sed "s/VERSION/${VERSION}/g" < squashfu.1 > ${DESTDIR}${MANPREFIX}/man1/squashfu.1
+ @chmod 644 ${DESTDIR}${MANPREFIX}/man1/squashfu.1
+
+uninstall:
+ @echo "--> Your inventory and config files will not be deleted."
+ @echo "Removing executable file from ${DESTDIR}/usr/bin"
+ @rm -f ${DESTDIR}/usr/bin/squashfu
+ @echo "Removing man page from ${DESTDIR}${MANPREFIX}/man1/squashfu.1"
+ @rm -f ${DESTDIR}${MANPREFIX}/man1/squashfu.1
+
+squashfu.1: README.pod
+ pod2man --section=1 --center=" " --release=" " --name="SQUASHFU" --date="squashfu-${VERSION}" README.pod > squashfu.1
+
Please sign in to comment.
Something went wrong with that request. Please try again.