Added examples to the build system.
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Tue, 26 May 2009 03:11:48 +0000 (03:11 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Tue, 26 May 2009 03:11:48 +0000 (03:11 +0000)
Put examples, contrib, doc and test in DIST_SUBDIRS.
Added unicode2ragel.rb to EXTRA_DIST in contrib.

git-svn-id: http://svn.complang.org/ragel/trunk@879 052ea7fc-9027-0410-9066-f65837a77df0

Makefile.am
configure.in
contrib/Makefile.am
examples/Makefile.am [moved from examples/Makefile with 95% similarity]

index 9db1064..0b0b131 100644 (file)
@@ -1,5 +1,6 @@
 
-SUBDIRS = ragel aapl doc test contrib
+SUBDIRS = ragel aapl
+DIST_SUBDIRS = contrib examples test doc
 
 dist_doc_DATA = CREDITS ChangeLog
 EXTRA_DIST = ragel.vim
index 12098fe..8df27b2 100644 (file)
@@ -108,6 +108,7 @@ AC_OUTPUT(
                doc/Makefile doc/ragel.1
                contrib/Makefile
                test/Makefile test/runtests
+               examples/Makefile
        ],
        [chmod +x test/runtests]
 )
index edecc5d..7ef7e8d 100644 (file)
@@ -1,2 +1,2 @@
 
-EXTRA_DIST = ragel.make ragel.m4
+EXTRA_DIST = ragel.make ragel.m4 unicode2ragel.rb
similarity index 95%
rename from examples/Makefile
rename to examples/Makefile.am
index 863b57e..959af6a 100644 (file)
@@ -30,14 +30,11 @@ TARGS = \
 
 all: $(TARGS)
 
-distclean clean:
-       rm -Rf *.o *.c *.cpp $(TARGS)
+#%.o: %.c
+#      gcc $(CFLAGS) -Wall -g -c -O3 -o $@ $<
 
-%.o: %.c
-       gcc $(CFLAGS) -Wall -g -c -O3 -o $@ $<
-
-%.o: %.cpp
-       g++ $(CXXFLAGS) -Wall -g -c -O3 -o $@ $<
+#%.o: %.cpp
+#      g++ $(CXXFLAGS) -Wall -g -c -O3 -o $@ $<
 
 #########################################