adding support for supercards; the neb.x supercards will be now recognized by QE-modes

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12698 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
kokalj 2016-08-09 16:18:46 +00:00
parent 62336fc42d
commit d2477f9ae8
2 changed files with 10 additions and 3 deletions

View File

@ -6,7 +6,7 @@ LATEX = pdflatex
ELISP_FILES = *.el *.elc ELISP_FILES = *.el *.elc
# automatic ... # automatic ...
ALL_DEF_FILES = $(shell find $(TOPDIR) | grep INPUT_ | egrep def$) ALL_DEF_FILES = $(shell find $(TOPDIR) | grep INPUT_ | egrep def$$)
## ... manual (i.e. perhaps more secure, as to have some control) ## ... manual (i.e. perhaps more secure, as to have some control)
#ALL_DEF_FILES = \ #ALL_DEF_FILES = \
@ -46,7 +46,7 @@ compile = cd qe-modes; emacs --batch --eval "(add-to-list 'load-path \".\")"
all: modes doc all: modes doc
modes: make-modes make-master modes: make-modes make-master
make-modes: qe pw ph pp ld1 cp make-modes: qe pw neb ph pp ld1 cp
# generate specific modes ... # generate specific modes ...
@ -55,6 +55,10 @@ pw: qe-funcs
$(generate) pw $(generate) pw
$(compile) --eval "(byte-compile-file \"pw-mode.el\")" $(compile) --eval "(byte-compile-file \"pw-mode.el\")"
neb: qe-funcs
$(generate) $(TOPDIR)/NEB/Doc/INPUT_NEB.def $(TOPDIR)/PW/Doc/INPUT_PW.def
$(compile) --eval "(byte-compile-file \"neb-mode.el\")"
ph: qe-funcs ph: qe-funcs
$(generate) ph $(generate) ph
$(compile) --eval "(byte-compile-file \"ph-mode.el\")" $(compile) --eval "(byte-compile-file \"ph-mode.el\")"
@ -98,7 +102,7 @@ clean:
- cd Doc; $(MAKE) clean - cd Doc; $(MAKE) clean
veryclean: clean veryclean: clean
- rm *~ */*~ - rm *~ */*~ */*.bak
- rm -rf qe-modes - rm -rf qe-modes
- rm -rf QE-modes-$(VERSION) - rm -rf QE-modes-$(VERSION)
- rm *.tar - rm *.tar

View File

@ -28,6 +28,9 @@
(add-to-list 'auto-mode-alist (add-to-list 'auto-mode-alist
'("\\(pw\\|n?scf\\|\\(?:vc-\\)?\\(?:md\\|relax\\)\\).*\\.in\\'" . pw-mode)) '("\\(pw\\|n?scf\\|\\(?:vc-\\)?\\(?:md\\|relax\\)\\).*\\.in\\'" . pw-mode))
;; automatically open the neb*.in files with neb.x mode
(add-to-list 'auto-mode-alist '("neb.*\\.in\\'" . neb-mode))
;; automatically open the cp*.in files with cp.x mode ;; automatically open the cp*.in files with cp.x mode
(add-to-list 'auto-mode-alist '("cp.*\\.in\\'" . ph-mode)) (add-to-list 'auto-mode-alist '("cp.*\\.in\\'" . ph-mode))