1# Makefile for slack 2# $Id: Makefile 188 2008-04-21 00:42:43Z sundell $ 3 4include Makefile.common 5 6TARGETS = all test \ 7 install install-bin install-conf install-lib install-man \ 8 clean distclean realclean 9SUBDIRS = doc src test 10 11distdir = $(PACKAGE)-$(VERSION) 12 13 14$(TARGETS):: 15 @set -e; \ 16 for i in $(SUBDIRS); do $(MAKE) -C $$i $@ ; done 17 18deb: 19 dpkg-buildpackage -b -uc -tc -rfakeroot 20 ls -l ../slack_*_all.deb 21 22dist: distclean 23 mkdir -p ../$(distdir) 24 rsync -a --exclude=.svn --exclude='*.swp' --delete-excluded \ 25 . ../$(distdir)/ 26 chmod -R a+rX ../$(distdir) 27 cd .. ; \ 28 tar -cp --exclude=debian -f $(distdir).tar $(distdir) ; \ 29 tar -cp -f $(distdir)-debian.tar $(distdir)/debian 30 rm -rf ../$(distdir) 31 gzip -9f ../$(distdir).tar ../$(distdir)-debian.tar 32 chmod a+r ../$(distdir).tar.gz ../$(distdir)-debian.tar.gz 33 @ls -l ../$(distdir).tar.gz ../$(distdir)-debian.tar.gz 34 35check: test 36