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,
6
# .NAME $MIDASHOME/$MIDVERS/*/help/makefile
7
# .LANGUAGE makefile syntax
8
# .ENVIRONMENT Unix Systems.
9
# .COMMENT Creates all *.hlc files from *.hlq.
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.
20
include ../../../local/default.mk
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}'`\" \
38
@(IFS=' '; for file in $(OBJ); \
39
do sed -n '/SECTION./,/\\us/p' $$file | sed '/^\\/d' | sed '2d' >> $@;\
44
@(if [ -f alll.hlz ]; then mv alll.hlz alll.hlz~; fi)
45
$(CREA_ALLL) > alll.hlz
48
$(CREA_HLQ) $(CONTEXT)