summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Andrieu <oandrieu@gmail.com>2003-11-26 19:45:24 +0000
committerOlivier Andrieu <oandrieu@gmail.com>2003-11-26 19:45:24 +0000
commitbd880a0c73e0b4a9a5f0b9191449659d0eec956c (patch)
tree358d8f00fcd137086d77fa38c0fce1b1c6579ec2
parent0fc6485df74b218d5579d16121572c5e15bcf8dd (diff)
added dist Makefile targetcairo-ocaml-0.2
-rw-r--r--Makefile16
-rw-r--r--config.make.in1
-rw-r--r--src/Makefile4
3 files changed, 17 insertions, 4 deletions
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
diff --git a/config.make.in b/config.make.in
index 7f43d07..7f211ba 100644
--- a/config.make.in
+++ b/config.make.in
@@ -24,5 +24,6 @@ GTKCAIRO_CFLAGS = @GTKCAIRO_CFLAGS@
GTKCAIRO_LIBS = $(filter-out $(FILT),@GTKCAIRO_LIBS@)
cobjs = $(patsubst %.c, %.o, $(filter %.c,$(1)))
+mlintfs = $(patsubst %.mli, %.cmi, $(filter %.mli,$(1)))
mlobjs = $(patsubst %.ml, %.cmo, $(filter %.ml,$(1)))
mloptobjs = $(patsubst %.ml, %.cmx, $(filter %.ml,$(1)))
diff --git a/src/Makefile b/src/Makefile
index ced0405..1190e8b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -58,6 +58,8 @@ $(call cobjs,$(lablgtk_SRC)) : CPPFLAGS+=$(GDK_CFLAGS) -I$(C_LABLGTKDIR)
$(call cobjs,$(gtkcairo_SRC)) : CPPFLAGS+=$(GTKCAIRO_CFLAGS) -I$(C_LABLGTKDIR)
$(call mlobjs,$(lablgtk_SRC)) : INCFLAGS=-I $(LABLGTKDIR)
$(call mlobjs,$(gtkcairo_SRC)) : INCFLAGS=-I $(LABLGTKDIR)
+$(call mlintfs,$(lablgtk_SRC)) : INCFLAGS=-I $(LABLGTKDIR)
+$(call mlintfs,$(gtkcairo_SRC)) : INCFLAGS=-I $(LABLGTKDIR)
$(call mloptobjs,$(lablgtk_SRC)) : INCFLAGS=-I $(LABLGTKDIR)
$(call mloptobjs,$(gtkcairo_SRC)) : INCFLAGS=-I $(LABLGTKDIR)
@@ -93,6 +95,6 @@ clean :
-include .depend
include .depend_c
-.PHONY : cairo lablgtk gtkcairo
+.PHONY : cairo lablgtk gtkcairo doc
include ../Makefile.rules