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:
parent
97cfd4d2b5
commit
456c6fc100
@ -17,7 +17,7 @@ libqmckl.so: Makefile.generated
|
||||
$(MAKE) -f Makefile.generated
|
||||
|
||||
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
|
||||
./create_makefile.sh $(ORG_SOURCE_FILES)
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user