summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-22 14:53:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-22 14:53:29 +0000
commitbb9fb12494b90c89d4a80c79020b7fbccb94f15f (patch)
treea12a69065db282467e5c6523fb6fdf60d76c0941 /Makefile
downloadmandoc-bb9fb12494b90c89d4a80c79020b7fbccb94f15f.tar.gz
Initial revision
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..43f98cdf
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+CFLAGS += -W -Wall -g
+
+LINTFLAGS += -c -e -f -u
+
+CLEAN = mdocml mdocml.o mdocml.ln libmdocml.o libmdocml.ln
+
+INSTALL = Makefile libmdocml.h mdocml.c libmdocml.c mdocml.1
+
+all: mdocml
+
+lint: mdocml.ln libmdocml.ln
+
+mdocml: mdocml.o libmdocml.o
+ $(CC) $(CFLAGS) -o $@ mdocml.o libmdocml.o
+
+clean:
+ rm -f $(CLEAN)
+
+dist:
+ 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