1
# @(#)makefile 19.1 (ESO-IPG) 02/25/03 14:17:33
2
# .COPYRIGHT: Copyright (c) 1988 European Southern Observatory,
5
# .NAME $MIDASHOME/$MIDVERS/*/help/makefile
6
# .LANGUAGE makefile syntax
7
# .ENVIRONMENT Unix Systems.
8
# .COMMENT Creates all *.hlc files from *.hlq.
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.
19
include ../../../local/default.mk
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}'`\" \
37
@(IFS=' '; for file in $(OBJ); \
38
do sed -n '/SECTION./,/\\us/p' $$file | sed '/^\\/d' | sed '2d' >> $@;\
43
@(if [ -f alll.hlz ]; then mv alll.hlz alll.hlz~; fi)
44
$(CREA_ALLL) > alll.hlz
47
$(CREA_HLQ) $(CONTEXT)