Debian Codegraph @

stdred/optopus/help/makefile

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