# 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 -m) && \ N=catlfish-$${VER}.$${ARCH} && \ { ln -s $$(basename $(INSTDIR)) $${N} && \ tar chf - $${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