summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-11-30 19:09:36 -0500
committerDave Reisner <d@falconindy.com>2010-11-30 19:40:47 -0500
commitf827493abf3d6615818baec9ac1496196629eec4 (patch)
treeed99f29ae75ea770eaaf1d0f5c3f7d40a392a545 /Makefile
parentb185b057674387ca58511d722af8d4cfe8acc6a8 (diff)
downloadexpac-f827493abf3d6615818baec9ac1496196629eec4.tar.xz
have a man page
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index dc99f05..4b57966 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ include config.mk
SRC = expac.c
OBJ = ${SRC:.c=.o}
-all: expac
+all: expac doc
35:
${MAKE} PMCHECK=-D_HAVE_ALPM_FIND_SATISFIER all
@@ -14,16 +14,20 @@ all: expac
expac: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
+doc: expac.1
+expac.1: README.pod
+ pod2man --section=1 --center="expac manual" --name="EXPAC" --release="expac ${VERSION}" $< > $@
+
install: expac
install -D -m755 expac ${DESTDIR}${PREFIX}/bin/expac
dist: clean
mkdir expac-${VERSION}
- cp Makefile expac.c expac-${VERSION}
+ cp Makefile expac.1 expac.c expac-${VERSION}
sed "s/^VERSION = .*/VERSION = ${VERSION}/" config.mk > expac-${VERSION}/config.mk
tar cf - expac-${VERSION} | gzip -9 > expac-${VERSION}.tar.gz
rm -rf expac-${VERSION}
clean:
- $(RM) ${OBJ} expac
+ $(RM) ${OBJ} expac expac.1