Debian Codegraph @

applic/statist/help/makefile

raw
1 # .COPYRIGHT: Copyright (c) 1988-2011 European Southern Observatory,
2 # all rights reserved
3 # .TYPE make file
4 # .NAME $MIDASHOME/$MIDVERS/*/help/makefile
5 # .LANGUAGE makefile syntax
6 # .ENVIRONMENT Unix Systems.
7 # .COMMENT Creates all *.hlc files from *.hlq.
8 # .REMARKS
9 # .AUTHOR Carlos Guirao
10 # .VERSION 1.1 910715: Implementation
11 # .VERSION 2.1 911015: Creating dependencies.
12 # .VERSION 3.1 920331: OBJ are defined on the internal make.
13 # .VERSION 4.1 920708: IFS is defined as NEWLINE.
14 # .VERSION 4.2 922308: IFS is defined as blank.
15 # .VERSION 3.0 930308: Using default.mk file
16 # .VERSION 3.1 940606: Working silently.
17
18 include ../../../local/default.mk
19
20 CONTEXT=
21
22 OBJ =
23 OUT =
24
25 all:
26 @(IFS=' '; for OUT in `ls *.hlq | sed -e 's/_.*//' -e 's/\.hlq//' | \
27 awk '{print substr(\$$1,1,6)}' | sort -u |awk '{printf "%s ",\$$1}'`;\
28 do (eval $(MAKE) -s OBJ=\"`ls $$OUT*.hlq |awk '{printf "%s ",\$$1}'`\" \
29 OUT=\"$$OUT\" one)\
30 done)
31
32 one: $(OUT).hlc
33
34 $(OUT).hlc: $(OBJ)
35 @ rm -f $@
36 @(IFS=' '; for file in $(OBJ); \
37 do sed -n '/SECTION./,/\\us/p' $$file | sed '/^\\/d' | sed '2d' >> $@;\
38 done )
39 @echo $@
40
41 make_alll:
42 @(if [ -f alll.hlz ]; then mv alll.hlz alll.hlz~; fi)
43 $(CREA_ALLL) > alll.hlz
44
45 make_hlq:
46 $(CREA_HLQ) $(CONTEXT)
47
48 clean:
49 rm -f *.hlc