Commit b8ca80a5 authored by Pauline Pommeret's avatar Pauline Pommeret

Makefile to make a lot of things easier (like building tarball)

parent 71dfcb11
*.pyc
doc/build/*
pommeret_senizergues.tar.gz
ECHO=echo
BEGPWD=$(shell pwd -P)
.PHONY: clean rmpyc purgedoc
pommeret_senizergues.tar.gz: clean
@${ECHO} Making source tarball...
cd /tmp; tar -C ${BEGPWD} --exclude-vcs -czv -f pommeret_senizergues.tar.gz .; mv pommeret_senizergues.tar.gz ${BEGPWD}
@${ECHO} Should be okay, now.
clean: rmpyc purgedoc
find . -iname "pommeret_senizergues.tar.gz" -delete
rmpyc:
@${ECHO} -n Purging all .pyc files...
@find . -iname "*.pyc" -delete
@${ECHO} " done."
purgedoc:
@${ECHO} Purging documentation...
@make -C doc clean
doc: doc/html doc/latexpdf
doc/html:
@${ECHO} Building html documentation...
@make -C doc html
doc/latexpdf:
@${ECHO} Building pdflatex documentation...
@make -C doc latexpdf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment