summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 47bbb56589322e5547f1cd877af960940f412f8c (plain) (blame)
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
CFLAGS += -W -Wall -g

LINTFLAGS += -c -e -f -u

CLEAN = mdocml mdocml.o mdocml.ln libmdocml.o libmdocml.ln mdocml.tgz

INSTALL = Makefile libmdocml.h mdocml.c libmdocml.c mdocml.1

all: mdocml

lint: mdocml.ln libmdocml.ln

dist: mdocml.tgz

mdocml: mdocml.o libmdocml.o
	$(CC) $(CFLAGS) -o $@ mdocml.o libmdocml.o

clean:
	rm -f $(CLEAN)

mdocml.tgz: $(INSTALL)
	mkdir -p .dist/mdocml/
	install -m 0644 $(INSTALL) .dist/mdocml/
	( cd .dist/ && tar zcf ../mdocml.tgz mdocml/ )
	rm -rf .dist/

mdocml.ln: mdocml.c 

mdocml.o: mdocml.c 

mdocml.c: libmdocml.h

libmdocml.ln: libmdocml.c 

libmdocml.o: libmdocml.c 

libmdocml.c: libmdocml.h