plugin hidden prefs: att_remover
[clawsker.git] / Makefile
index fee04a6eabab121ca21396af15071ef06e3ae56e..f2eeb4fb2c90f0e0136c51872a676f5a713056f0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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,11 +78,12 @@ dist:
                && rm -rf ${NAME}-${VERSION}
 
 clean-build:
+       rm -f ${NAME}.1
        rm -rf build
 
 clean: clean-build
        rm -f *~
        ${MAKE} -C po clean
 
-.PHONY: all build install install-dirs uninstall clean clean-build dist
+.PHONY: all build install install-dirs install-icons-dirs install-icons uninstall uninstall-icons clean clean-build dist