Debian Codegraph @

stdred/feros/help/makefile

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