Editing and cleaning of Makefiles of all levels.
[Faustine.git] / interpretor / lib / Makefile
index d6ed16f..2ee772f 100644 (file)
@@ -9,17 +9,17 @@ all: librairies
 
 librairies : libsndfile libsfocaml
 
-libsndfile:
+libsndfile::
        mkdir -p $(DESTDIR)
        cd $(LIBSNDFILE_SRCDIR) && ./configure --prefix="$(DESTDIR)" --exec_prefix="$(DESTDIR)"
        cd $(LIBSNDFILE_SRCDIR) && make
        cd $(LIBSNDFILE_SRCDIR) && make install
        cd $(LIBSNDFILE_SRCDIR) && make clean
 
-libsfocaml:
+libsfocaml::
        cd $(LIBSFOCAML_SRCDIR) && PKG_CONFIG_PATH=$(DESTDIR)/lib/pkgconfig
+       cd $(LIBSFOCAML_SRCDIR) && make depend
        cd $(LIBSFOCAML_SRCDIR) && make
-       cd $(LIBSFOCAML_SRCDIR) #&& make clean
 
 .PHONY: clean mrproper help libsndfile libsfocaml
 
@@ -33,3 +33,4 @@ clean:
 
 mrproper: clean
        rm -rf $(DESTDIR)
+       @(cd $(LIBSFOCAML_SRCDIR) && $(MAKE) clean)