File: makefile

package info (click to toggle)
eso-midas 25.05pl1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 146,924 kB
  • sloc: ansic: 360,686; makefile: 6,231; sh: 6,002; pascal: 535; perl: 40; awk: 36; sed: 14
file content (50 lines) | stat: -rw-r--r-- 1,357 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# @(#)makefile	19.1 (ESO-IPG) 02/25/03 14:24:05
# .COPYRIGHT:	Copyright (c) 1988 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/*/help/makefile
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	Creates all *.hlc files from *.hlq.
# .REMARKS 
# .AUTHOR	Carlos Guirao
# .VERSION 1.1  910715:         Implementation
# .VERSION 2.1  911015:         Creating dependencies.
# .VERSION 3.1  920331:         OBJ are defined on the internal make.
# .VERSION 4.1  920708:         IFS is defined as NEWLINE.
# .VERSION 4.2  922308:         IFS is defined as blank. 
# .VERSION 3.0  930308:		Using default.mk file
# .VERSION 3.1  940606:		Working silently.

include ../../../local/default.mk

CONTEXT= 

OBJ =
OUT =

all:
	@(IFS=' '; for OUT in `ls *.hlq | sed -e 's/_.*//'  -e 's/\.hlq//' | \
	awk '{print substr(\$$1,1,6)}' | sort -u |awk '{printf "%s ",\$$1}'`;\
	do (eval $(MAKE) -s OBJ=\"`ls $$OUT*.hlq |awk '{printf "%s ",\$$1}'`\" \
	OUT=\"$$OUT\" one)\
	done)

one: $(OUT).hlc

$(OUT).hlc: $(OBJ)
	@ rm -f $@
	@(IFS=' '; for file in $(OBJ); \
	do sed -n '/SECTION./,/\\us/p' $$file | sed '/^\\/d' | sed '2d' >> $@;\
	done )
	@echo $@

make_alll:
	@(if [ -f alll.hlz ]; then mv alll.hlz alll.hlz~; fi)
	$(CREA_ALLL) > alll.hlz

make_hlq:
	$(CREA_HLQ) $(CONTEXT)
	
clean:
	rm -f *.hlc