File: Makefile

package info (click to toggle)
elk 3.0-6
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 4,068 kB
  • ctags: 3,123
  • sloc: ansic: 20,686; lisp: 5,232; makefile: 419; awk: 91; sh: 21
file content (24 lines) | stat: -rw-r--r-- 655 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
MANUAL= oops
TROFF= groff -ms -t
UNROFF= unroff -ms

$(MANUAL).ps:	$(MANUAL).ms index.ms
	(cat $(MANUAL).ms ../util/tmac.index index.ms; echo ".Tc")\
	    | $(TROFF) 2> /dev/null > $(MANUAL).ps

$(MANUAL).html:	$(MANUAL).ms
	(cat $?; echo ".Tc") | $(UNROFF) document=$(MANUAL)

index.ms:	$(MANUAL).ms index.raw
	sort -f -t# +1 -3 +0n index.raw | awk -f ../util/fixindex.awk\
	    | awk -f ../util/block.awk >index.ms

index.raw:	$(MANUAL).ms
	$(TROFF) $(MANUAL).ms 2> index.raw >/dev/null

check:
	checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL).ms |\
	    grep -v "Empty command"

clean:
	rm -f index.raw index.ms $(MANUAL).ps $(MANUAL).html