File: Makefile

package info (click to toggle)
espresso 6.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 311,040 kB
  • sloc: f90: 447,429; ansic: 52,566; sh: 40,631; xml: 37,561; tcl: 20,077; lisp: 5,923; makefile: 4,502; python: 4,379; perl: 1,219; cpp: 761; fortran: 618; java: 568; awk: 128
file content (63 lines) | stat: -rw-r--r-- 1,536 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
TOPDIR        = ../../../..
QE_DOC_DIR    = $(TOPDIR)/Doc

INPUT_FILES_HTML = \
        INPUT_PW.html \
	INPUT_NEB.html \
        INPUT_PH.html \
        INPUT_PP.html \
        INPUT_PROJWFC.html \
        INPUT_BANDS.html \
        INPUT_DOS.html \
        INPUT_LD1.html \
        INPUT_HP.html

INPUT_FILES_TXT = $(INPUT_FILES_HTML:.html=.txt)
LINK_FILES      = $(INPUT_FILES_TXT) 


all: input_html make_user_guide


links:
	- ( cd $(TOPDIR); $(MAKE) doc )
	for file in $(LINK_FILES); do \
		if test ! -f $$file; then ln -sf $(QE_DOC_DIR)/$$file . ; fi; \
	done

clean_links:
	for file in $(LINK_FILES); do \
		if test -f $$file ; then rm -f $$file ; fi ; \
	done


input_html: links 
	./htmlise.sh INPUT_PW.txt      > INPUT_PW.html
	./htmlise.sh INPUT_NEB.txt     > INPUT_NEB.html
	./htmlise.sh INPUT_PH.txt      > INPUT_PH.html
	./htmlise.sh INPUT_PP.txt      > INPUT_PP.html
	./htmlise.sh INPUT_PROJWFC.txt > INPUT_PROJWFC.html
	./htmlise.sh INPUT_BANDS.txt   > INPUT_BANDS.html
	./htmlise.sh INPUT_DOS.txt     > INPUT_DOS.html
	./htmlise.sh INPUT_LD1.txt     > INPUT_LD1.html
	./htmlise.sh INPUT_HP.txt      > INPUT_HP.html

make_user_guide: links
	rm -rf user_guide/
	cp -a $(QE_DOC_DIR)/user_guide .
	cd user_guide/; \
	for file in *.html; do \
		cp $$file /tmp/$$file; \
		cat /tmp/$$file | sed 's/ / /g' - > $$file; \
		rm -f /tmp/$$file; \
	done


clean: clean_links
	-rm -f INPUT_*.html INPUT_*.txt *~
	-rm -f *.tex *.aux *.log *.out *.toc *.gif *.pdf *.png
	-rm -rf user_guide/	


distclean: clean
veryclean: clean