add new top level examples/ directory with one example for now (example_c_decode_file)
diff --git a/Makefile.lite b/Makefile.lite
index 1db7163..92e5822 100644
--- a/Makefile.lite
+++ b/Makefile.lite
@@ -30,8 +30,8 @@
topdir = .
-.PHONY: all doc src libFLAC libFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams
-all: doc src
+.PHONY: all doc src examples libFLAC libFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams
+all: doc src examples
DEFAULT_CONFIG = release
@@ -46,57 +46,61 @@
release : all
doc:
- (cd $@ ; $(MAKE) -f Makefile.lite)
+ (cd $@ && $(MAKE) -f Makefile.lite)
src:
- (cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
+
+examples: src
+ (cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
libFLAC:
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
libFLAC++: libFLAC
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
share: libFLAC
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
flac: libFLAC share
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
metaflac: libFLAC share
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
plugin_common: libFLAC
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
plugin_xmms: libFLAC plugin_common
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
test_seeking: libFLAC
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
test_streams: libFLAC
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
test_grabbag: share
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
test_libFLAC: libFLAC
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
test_libFLAC++: libFLAC libFLAC++
- (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+ (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
test: debug
- (cd test ; $(MAKE) -f Makefile.lite debug)
+ (cd test && $(MAKE) -f Makefile.lite debug)
testv: valgrind
- (cd test ; $(MAKE) -f Makefile.lite valgrind)
+ (cd test && $(MAKE) -f Makefile.lite valgrind)
testr: release
- (cd test ; $(MAKE) -f Makefile.lite release)
+ (cd test && $(MAKE) -f Makefile.lite release)
clean:
- -(cd doc ; $(MAKE) -f Makefile.lite clean)
- -(cd src ; $(MAKE) -f Makefile.lite clean)
- -(cd test ; $(MAKE) -f Makefile.lite clean)
+ -(cd doc && $(MAKE) -f Makefile.lite clean)
+ -(cd src && $(MAKE) -f Makefile.lite clean)
+ -(cd examples && $(MAKE) -f Makefile.lite clean)
+ -(cd test && $(MAKE) -f Makefile.lite clean)