summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-22 14:54:55 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-22 14:54:55 +0000
commit6df3d92658b4f43a3950f7a88baccded9b5e2cff (patch)
treeaf3f821b6b4c74c3045de8010466fc8b7c05145d /Makefile
parentbb9fb12494b90c89d4a80c79020b7fbccb94f15f (diff)
downloadmandoc-6df3d92658b4f43a3950f7a88baccded9b5e2cff.tar.gz
Fixed dist hook in Makefile (uses a file-target).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 43f98cdf..47bbb565 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CFLAGS += -W -Wall -g
LINTFLAGS += -c -e -f -u
-CLEAN = mdocml mdocml.o mdocml.ln libmdocml.o libmdocml.ln
+CLEAN = mdocml mdocml.o mdocml.ln libmdocml.o libmdocml.ln mdocml.tgz
INSTALL = Makefile libmdocml.h mdocml.c libmdocml.c mdocml.1
@@ -10,13 +10,15 @@ 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)
-dist:
+mdocml.tgz: $(INSTALL)
mkdir -p .dist/mdocml/
install -m 0644 $(INSTALL) .dist/mdocml/
( cd .dist/ && tar zcf ../mdocml.tgz mdocml/ )