forked from Orc/discount
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
66 lines (51 loc) · 1.53 KB
/
Makefile.in
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
CC=@CC@
AR=@AR@
RANLIB=@RANLIB@
BINDIR=@exedir@
MANDIR=@mandir@
LIBDIR=@libdir@
INCDIR=@prefix@/include
PGMS=markdown mkd2html
MKDLIB=libmarkdown.a
OBJS=mkdio.o markdown.o dumptree.o generate.o
all: $(PGMS)
install: $(PGMS)
@INSTALL_PROGRAM@ $(PGMS) $(BINDIR)
@INSTALL_DATA@ $(MKDLIB) $(LIBDIR)
@INSTALL_DATA@ mkdio.h $(INCDIR)
install.man:
@INSTALL_DIR@ $(MANDIR)/man3
@INSTALL_DATA@ markdown.3 $(MANDIR)/man3
for x in mkd_text mkd_in mkd_string; do \
( echo '.\"' ; echo ".so man3/markdown.3" ) > $(MANDIR)/man3/$$x.3;\
done
@INSTALL_DIR@ $(MANDIR)/man7
@INSTALL_DATA@ markdown.7 $(MANDIR)/man7
@INSTALL_DIR@ $(MANDIR)/man1
@INSTALL_DATA@ markdown.1 $(MANDIR)/man1
install.everything: install install.man
version.o: VERSION config.h
echo 'char version[] = VERSION;' > version.c && \
$(CC) -DVERSION=\"`cat VERSION`\" -c version.c
markdown: main.o version.o $(MKDLIB)
$(CC) -L. -o markdown main.o version.o -lmarkdown @LIBS@
# example program
mkd2html: mkd2html.o version.o $(MKDLIB)
$(CC) -L. -o mkd2html mkd2html.o version.o -lmarkdown @LIBS@
main.o: main.c mkdio.h config.h
$(CC) -I. -c main.c
$(MKDLIB): $(OBJS)
$(AR) crv $(MKDLIB) $(OBJS)
$(RANLIB) $(MKDLIB)
test: $(PGMS)
@for x in tests/*.t; do \
sh $$x; \
done
clean:
rm -f $(PGMS) *.o $(MKDLIB)
distclean spotless: clean
rm -f @GENERATED_FILES@ @CONFIGURE_FILES@
markdown.o: markdown.c config.h cstring.h markdown.h
generate.o: generate.c config.h cstring.h markdown.h
dumptree.o: dumptree.c cstring.h markdown.h
mkdio.o: mkdio.c mkdio.h cstring.h config.h