summaryrefslogtreecommitdiffstats
path: root/contrib/top/Make.desc.X
blob: 6fcb79e2778a6994ca99b65c7a46ad08ef1b697e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Makefile for .desc files

# This makefile is the prototype for "Make.desc", which is used by
# top's Configure script to build .desc files and the SYNOPSIS file.
# Configure then uses these files to ask appropriate questions.

# Written by William LeFebvre, Group sys Consulting
#	     (formerly of Northwestern University and Rice University)

# DO NOT EDIT "Make.desc"!!!  Make changes to "Make.desc.X",
# then "make veryclean", then run "Configure".

# The list of .desc files will be inserted after this next line:
DESCS=\

.SUFFIXES: .desc

.c.desc:
	sed -e '/^$$/,$$d' -e 's,^[/ *]*,,' $< > $@

all: SYNOPSIS

SYNOPSIS: $(DESCS)
	grep SYNOPSIS: $(DESCS) | sed -e 's@^machine/m_@@' -e 's@.desc:.[^:]*: *@:@' >SYNOPSIS
OpenPOWER on IntegriCloud