Remove not really useful item
[clawsker.git] / Makefile
index cef123245152721ff9fda870efe107914b7ceb5c..a8fc28975e8af238a9336464087f8820ae77bf05 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 #
 # Clawsker Makefile
-# Copyright 2007-2015 Ricardo Mones <ricardo@mones.org>
+# Copyright 2007-2016 Ricardo Mones <ricardo@mones.org>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -11,7 +11,7 @@
 #
 
 NAME = clawsker
-VERSION ?= 0.7.13
+VERSION ?= 0.7.14
 PREFIX ?= /usr/local
 BINDIR = ${PREFIX}/bin
 DATADIR = ${PREFIX}/share
@@ -24,12 +24,14 @@ ICONRES = 64 128
 
 all: build
 
-build:
+build: ${NAME}.1
        -mkdir build
        sed -e "s,@PREFIX@,${PREFIX},;s,@LIBDIR@,${LIBDIR},;s,@VERSION@,${VERSION},;s,@DATADIR@,${DATADIR}," < ${NAME} > build/${NAME}
-       pod2man --release ${VERSION} -c '' ${NAME}.pod > build/${NAME}.1
+       cp -p $< build/$<
        ${MAKE} -C po build
-       
+
+${NAME}.1: ${NAME}.pod
+       pod2man --release ${VERSION} -c '' $< > $@
 
 install: all install-dirs install-icons
        install -m 0755 build/${NAME} ${DESTDIR}${BINDIR}
@@ -76,6 +78,7 @@ dist:
                && rm -rf ${NAME}-${VERSION}
 
 clean-build:
+       rm -f ${NAME}.1
        rm -rf build
 
 clean: clean-build