From bd880a0c73e0b4a9a5f0b9191449659d0eec956c Mon Sep 17 00:00:00 2001 From: Olivier Andrieu Date: Wed, 26 Nov 2003 19:45:24 +0000 Subject: added dist Makefile target --- Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 447c0c7..52a7e1e 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,19 @@ +all opt doc install clean : + $(MAKE) -C src $@ +VERSION = 0.2 +DISTSRC = aclocal.m4 config.make.in configure configure.ac Makefile Makefile.rules \ + doc support/install-sh support/install-sh support/ocaml.m4 \ + src/*.ml src/*.mli src/*.c src/*.h src/Makefile src/.depend_c \ + test/Makefile test/*.ml +dist : doc + export DIRNAME=$${PWD##*/} && \ + cd .. && mv $$DIRNAME cairo-ocaml-$(VERSION) && \ + tar zcvf cairo-ocaml-$(VERSION).tar.gz $(addprefix cairo-ocaml-$(VERSION)/,$(DISTSRC)) && \ + mv cairo-ocaml-$(VERSION) $$DIRNAME -all opt doc install clean : - $(MAKE) -C src $@ configure : configure.ac aclocal -I support @@ -12,4 +22,4 @@ config.make : config.make.in configure $(error run ./configure) include config.make -.PHONY : doc +.PHONY : all opt doc install clean -- cgit v1.2.3