Prevent invoking Jinja templating unecessarily
This commit is contained in:
parent
0a0cad34aa
commit
ea8671c2ec
4 changed files with 10 additions and 6 deletions
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue