Prevent invoking Jinja templating unecessarily

This commit is contained in:
Dag Sverre Seljebotn 2015-04-22 14:23:39 +02:00
parent 0a0cad34aa
commit ea8671c2ec
4 changed files with 10 additions and 6 deletions

View file

@ -54,10 +54,10 @@ perftest: compile_all
$(BINDIR)/sharp_testsuite test gauss 4095 -1 -1 8192 0 1 && \
$(BINDIR)/sharp_testsuite test gauss 8191 -1 -1 16384 0 1
# Jinja templates
%.c: %.c.in
./runjinja.py < $< > $@
# Only do this if the md5sum changed, in order to avoid Python and Jinja
# dependency when not modifying the c.in file
grep `md5sum $< | cut -d ' ' -f 1` $@ || ./runjinja.py < $< > $@
genclean:
rm libsharp/sharp_legendre.c || exit 0