From 456c6fc10065ef32d4b125ddc6f7d967e9b4a08e Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Sat, 17 Oct 2020 00:00:57 +0200 Subject: [PATCH] Updated Makefile --- src/Makefile | 2 +- src/org_to_code.sh | 38 -------------------------------------- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100755 src/org_to_code.sh diff --git a/src/Makefile b/src/Makefile index fa56849..dc00079 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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) diff --git a/src/org_to_code.sh b/src/org_to_code.sh deleted file mode 100755 index 4afe7d8..0000000 --- a/src/org_to_code.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash - -if [[ -z $1 ]] ; then - echo "Usage: $0 " - 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