1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-12-22 12:23:56 +01:00

Updated Makefile

This commit is contained in:
Anthony Scemama 2020-10-17 00:00:57 +02:00
parent 97cfd4d2b5
commit 456c6fc100
2 changed files with 1 additions and 39 deletions

View File

@ -17,7 +17,7 @@ libqmckl.so: Makefile.generated
$(MAKE) -f Makefile.generated $(MAKE) -f Makefile.generated
clean: clean:
rm -f qmckl_*.f90 qmckl_*.c qmckl_*.o qmckl_*.h Makefile.generated libqmckl.so rm -f qmckl.h test_qmckl_*.c test_qmckl_*.f90 qmckl_*.f90 qmckl_*.c qmckl_*.o qmckl_*.h Makefile.generated libqmckl.so
Makefile.generated: $(ORG_SOURCE_FILES) Makefile create_makefile.sh Makefile.generated: $(ORG_SOURCE_FILES) Makefile create_makefile.sh
./create_makefile.sh $(ORG_SOURCE_FILES) ./create_makefile.sh $(ORG_SOURCE_FILES)

View File

@ -1,38 +0,0 @@
#!/usr/bin/env bash
if [[ -z $1 ]] ; then
echo "Usage: $0 <FILE.org>"
exit 1;
fi
if [[ -z $6 ]] ; then
# Few file to tangle
for INPUT in $@ ; do
emacs \
--quick \
--no-init-file \
--batch \
--eval "(require 'org)" \
--eval "(org-babel-tangle-file \"$INPUT\")"
done
else
# Multiple files to tangle, so we use the emacs server to speed up thing
emacsclient -a "" \
--socket-name=org_to_code \
--eval "(require 'org)"
for INPUT in $@ ; do
emacsclient \
--no-wait \
--socket-name=org_to_code \
--eval "(org-babel-tangle-file \"$INPUT\")"
done
emacsclient \
--no-wait \
--socket-name=org_to_code \
--eval '(kill-emacs)'
fi