aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5494fe0..b0da10e 100644
--- a/Makefile
+++ b/Makefile
@@ -12,18 +12,20 @@ run: build
clean:
rm -f pfc
-install:
+doc:
+ sed "s/VERSION/${VERSION}/g" < doc/intro.1 | \
+ cat - doc/{cmd.1,op.1,func.1,const.1} > pfc.1
+
+install: doc
go build -buildvcs=false
cp pfc ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/pfc
mkdir -p ${DESTDIR}${MANPREFIX}/man1
- cat doc/{intro.1,cmd.1,op.1,func.1,const.1} | \
- sed "s/VERSION/${VERSION}/g" > \
- ${DESTDIR}${MANPREFIX}/man1/pfc.1
+ cp pfc.1 ${DESTDIR}${MANPREFIX}/man1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/pfc.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/pfc \
${DESTDIR}${MANPREFIX}/man1/pfc.1
-.PHONY: build run install uninstall
+.PHONY: build run clean doc install uninstall