Better approach: editable lists of hotkeys
[clawsker.git] / Makefile
index fee04a6eabab121ca21396af15071ef06e3ae56e..0393e0f08684f2f385f7b0bdac8fc7a48f12427f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@
 #
 
 NAME = clawsker
-VERSION ?= 0.7.14
+VERSION ?= 1.0.1
 PREFIX ?= /usr/local
 BINDIR = ${PREFIX}/bin
 DATADIR = ${PREFIX}/share
@@ -20,16 +20,18 @@ MANDIR = ${DATADIR}/man
 MAN1DIR = ${MANDIR}/man1
 APPSDIR = ${DATADIR}/applications
 THEMEDIR = ${DATADIR}/icons/hicolor
-ICONRES = 64 128
+ICONRES = 48 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}
@@ -49,7 +51,7 @@ install-icons-dirs:
                install -d ${DESTDIR}${THEMEDIR}/$${res}x$${res}/apps; \
        done
 
-install-icons:
+install-icons: install-icons-dirs
        for res in ${ICONRES}; do \
                install -m 0644 icons/${NAME}-$${res}.png ${DESTDIR}${THEMEDIR}/$${res}x$${res}/apps/${NAME}.png; \
        done
@@ -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