diff options
-rw-r--r-- | Makefile | 16 | ||||
-rw-r--r-- | config.make.in | 1 | ||||
-rw-r--r-- | src/Makefile | 4 |
3 files changed, 17 insertions, 4 deletions
@@ -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 |