received translations and updates
[clawsker.git] / Makefile
index 84674f9914c449ad13f2d7f71da1611eeef89fde..954ec3027e6cf03bc93a8c5812977aad65f43226 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,29 +15,34 @@ MAN1DIR = ${MANDIR}/man1
 all: build
 
 build:
 all: build
 
 build:
-       mkdir build
+       -mkdir build
        sed -e "s,@PREFIX@,${PREFIX},;s,@LIBDIR@,${LIBDIR},;s,@VERSION@,${VERSION}," \
                < ${NAME} > build/${NAME}
        pod2man ${NAME} > build/${NAME}.1
        sed -e "s,@PREFIX@,${PREFIX},;s,@LIBDIR@,${LIBDIR},;s,@VERSION@,${VERSION}," \
                < ${NAME} > build/${NAME}
        pod2man ${NAME} > build/${NAME}.1
+       ${MAKE} -C po build
        
 
 install: all install-dirs
        install -m 0755 build/${NAME} ${DESTDIR}${BINDIR}
        install -m 0644 build/${NAME}.1 ${DESTDIR}${MAN1DIR}
        
 
 install: all install-dirs
        install -m 0755 build/${NAME} ${DESTDIR}${BINDIR}
        install -m 0644 build/${NAME}.1 ${DESTDIR}${MAN1DIR}
+       ${MAKE} -C po install
 
 install-dirs:
        install -d ${DESTDIR}${BINDIR}
        install -d ${DESTDIR}${MAN1DIR}
 
 install-dirs:
        install -d ${DESTDIR}${BINDIR}
        install -d ${DESTDIR}${MAN1DIR}
+       ${MAKE} -C po install-dirs
 
 uninstall:
        rm -f ${DESTDIR}${BINDIR}/${NAME}
        rm -f ${DESTDIR}${MAN1DIR}/${NAME}.1
 
 uninstall:
        rm -f ${DESTDIR}${BINDIR}/${NAME}
        rm -f ${DESTDIR}${MAN1DIR}/${NAME}.1
+       ${MAKE} -C po uninstall
 
 clean-build:
        rm -rf build
 
 
 clean-build:
        rm -rf build
 
-clean:
-       rm -f ${NAME}.1 *~
+clean: clean-build
+       rm -f *~
+       ${MAKE} -C po clean
 
 .PHONY: all build install install-dirs uninstall clean clean-build
 
 
 .PHONY: all build install install-dirs uninstall clean clean-build