#
-# Copyright 2001-2007 Adrian Thurston <thurston@cs.queensu.ca>
+# Copyright 2001-2007 Adrian Thurston <thurston@complang.org>
#
# This file is part of Ragel.
# along with Ragel; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-BUILD_SUBDIRS = common ragel redfsm rlgen-cd rlgen-java rlgen-ruby rlgen-dot
-ALL_SUBDIRS = $(BUILD_SUBDIRS) test examples doc
+BUILD_COMMON = common redfsm rlgen-cd rlgen-java rlgen-ruby rlgen-csharp rlgen-dot
+BUILD_SUBDIRS = ragel
+ALL_SUBDIRS = $(BUILD_COMMON) $(BUILD_SUBDIRS) test examples doc
#*************************************
# build targets
all: $(BUILD_SUBDIRS)
-.PHONY: $(BUILD_SUBDIRS)
+.PHONY: $(ALL_SUBDIRS)
+
+$(BUILD_COMMON):
+ @cd $@ && $(MAKE)
-$(BUILD_SUBDIRS):
+$(BUILD_SUBDIRS): $(BUILD_COMMON)
@cd $@ && $(MAKE)
# clean targets.
.PHONY: $(DISTCLEAN_SUBDIRS)
$(DISTCLEAN_SUBDIRS):
- @cd $(@:%-distclean=%) && $(MAKE) clean
+ @cd $(@:%-distclean=%) && $(MAKE) distclean
distclean: $(DISTCLEAN_SUBDIRS)
rm -f Makefile config.cache config.status config.log