email address update: thurston@cs.queensu.ca -> thurston@complang.org
[external/ragel.git] / Makefile.in
index 1489137..7146ed3 100644 (file)
@@ -1,5 +1,5 @@
 #
-#   Copyright 2001-2007 Adrian Thurston <thurston@cs.queensu.ca>
+#   Copyright 2001-2007 Adrian Thurston <thurston@complang.org>
 #
 
 #   This file is part of Ragel.
@@ -18,9 +18,9 @@
 #   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
 
 #*************************************
 
@@ -33,16 +33,13 @@ include version.mk
 # build targets
 all: $(BUILD_SUBDIRS)
 
-.PHONY: $(BUILD_SUBDIRS)
+.PHONY: $(ALL_SUBDIRS)
 
-$(BUILD_SUBDIRS):
+$(BUILD_COMMON):
        @cd $@ && $(MAKE)
 
-# new version
-
-new-version:
-       sed 's/^\(Version:[[:space:]]*\)[0-9.]*$$/\1$(VERSION)/' ragel.spec > spec-new
-       cat spec-new > ragel.spec && rm spec-new
+$(BUILD_SUBDIRS): $(BUILD_COMMON)
+       @cd $@ && $(MAKE)
 
 # clean targets.
 
@@ -63,7 +60,7 @@ DISTCLEAN_SUBDIRS = $(ALL_SUBDIRS:%=%-distclean)
 .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