# Makefile for catlfish PREFIX=. INSTDIR=$(PREFIX)/catlfish build all: ./make.erl clean: -rm ebin/*.beam $(MAKE) -C doc $@ release: all rm -rf $(INSTDIR) mkdir $(INSTDIR) ./makerelease.erl $(INSTDIR) dist: release (VER=$$(./version.erl) && \ ARCH=$$(uname -sm | sed -e 's/ /-/g') && \ N=catlfish-$${VER}_$${ARCH} && \ { ln -s $(INSTDIR) $${N} && \ tar c --dereference -f - $${N} | xz > $${N}.tar.xz; }; \ rm $${N}) tests: make -C test tests dialyze: build dialyzer ebin tags: find . -name \*.?rl -o -name \*.py | etags - doc: $(MAKE) -C $@ # Unit testing. check: all test/check.erl