summaryrefslogtreecommitdiff
path: root/support/c2latex/Makefile
blob: 332c3e3b0ec1af3ea988154ac9e08601acae2692 (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
25
26
27
28
29
30
31
32
33
34
35
# c2latex Makefile
# @(#)Makefile	1.1 91/01/16

CFLAGS	= -O
SRCS	= c2latex.c
PROG	= c2latex

all:	$(PROG)

$(PROG):	$(SRCS)
	$(CC) $(CFLAGS) -o $@ $(SRCS)

install:	$(DEST)/$(PROG)

$(DEST)/$(PROG):	$(SRCS)
	make $(PROG)
	cp $(PROG) $(DEST)

doc:	$(PROG).dvi

$(PROG).dvi:	$(PROG).tex
	latex $(PROG)

$(PROG).tex:	$(PROG) $(PROG).c
	$(PROG) $(PROG).c $@

clean:
	-rm $(PROG) $(PROG).??? $(PROG).shar

dist:	$(PROG).shar

$(PROG).shar:	Makefile $(SRCS)
	shar Makefile $(SRCS) > $@

.PHONY:	all doc install clean dist