Include tests in tarball
[clawsker.git] / Makefile
index 0393e0f08684f2f385f7b0bdac8fc7a48f12427f..41a37e2198fb2e52fa5b621b78ce482759ac23c7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 #
 # Clawsker Makefile
-# Copyright 2007-2016 Ricardo Mones <ricardo@mones.org>
+# Copyright 2007-2018 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 ?= 1.0.1
+VERSION ?= 1.3.0
 PREFIX ?= /usr/local
 BINDIR = ${PREFIX}/bin
 DATADIR = ${PREFIX}/share
@@ -72,8 +72,15 @@ dist:
        mkdir ${NAME}-${VERSION}
        cp -p AUTHORS ChangeLog.old ${NAME} ${NAME}.pod ${NAME}.desktop \
                COPYING Makefile NEWS README ${NAME}-${VERSION}
-       cp -rp po ${NAME}-${VERSION}
-       cp -rp icons ${NAME}-${VERSION}
+       mkdir ${NAME}-${VERSION}/po
+       cp -p po/*.po po/*.pot po/Makefile po/POTFILES po/README po/STATUS \
+               ${NAME}-${VERSION}/po
+       mkdir ${NAME}-${VERSION}/po/unmaint
+       cp -p po/unmaint/*.po ${NAME}-${VERSION}/po/unmaint
+       mkdir ${NAME}-${VERSION}/icons
+       cp -p icons/*.xcf icons/*.png ${NAME}-${VERSION}/icons
+       mkdir ${NAME}-${VERSION}/t
+       cp -p t/*.t ${NAME}-${VERSION}/t
        tar cJf ${NAME}-${VERSION}.tar.xz ${NAME}-${VERSION} \
                && rm -rf ${NAME}-${VERSION}
 
@@ -85,5 +92,12 @@ clean: clean-build
        rm -f *~
        ${MAKE} -C po clean
 
-.PHONY: all build install install-dirs install-icons-dirs install-icons uninstall uninstall-icons clean clean-build dist
+test-setup:
+       @test -h t/Clawsker.pm || ( cd t/ && ln -s ../clawsker Clawsker.pm )
 
+test: test-setup
+       @env DISPLAY= prove -It
+
+.PHONY: all build install install-dirs install-icons-dirs install-icons
+.PHONY: uninstall uninstall-icons clean clean-build dist
+.PHONY: test-setup test