blob: 231157943e9c1b4c2118775e594e5d85a59197bf (
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
|
.POSIX:
.SUFFIXES: .cat .msg
default: all
CFLAGS=-g -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter
UTILITY=ed
SOURCES=ed.c commands.c stubs.c env.c io.c signals.c input.c re.c
HEADERS=ed.h
OBJECTS=ed.o commands.o stubs.o env.o io.o signals.o input.o re.o
L10N=
all: $(UTILITY) $(L10N)
$(UTILITY): $(OBJECTS) $(HEADERS)
.msg.cat:
gencat $@ $<
.c.cat:
sed -ne '/^\/\*\*cat/,/cat\*\*\//p;' $< | grep -v ^/ | grep -v ^\* | gencat $@ -
clean:
rm -f *.o $(L10N) $(UTILITY)
|