dynare/Makefile

31 lines
737 B
Makefile

all:
make -C preprocessor
make -C doc
.PHONY: all
clean:
make -C preprocessor clean
make -C doc clean
rm -f matlab/dynare_m matlab/dynare_m.exe
rm -f mex/2007a/* mex/2007b/* mex/octave/*.mex
rm -f windows/*.exe
rm -f *~
.PHONY: clean
distclean: clean
rm -f config.log config.status
rm -rf autom4te.cache
rm -f preprocessor/Makefile
.PHONY: distclean
DYNAREBASE=$(shell basename $(shell pwd))
# Rule for creating the source tarball
# The parent directory must be called dynare-4.x.y
# WARNING: this rule will make your SVN working copy unusable!
srctarball: distclean
find -name .svn | xargs rm -rf
find -type f -name '*~' | xargs rm -f
cd ..; tar cvzf $(DYNAREBASE).tgz --exclude=tests $(DYNAREBASE)
.PHONY: srctarball