]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-353: better error reporting for missing lib, don't error on clean
authorMichael Jerris <mike@jerris.com>
Wed, 26 Mar 2014 21:11:18 +0000 (17:11 -0400)
committerMichael Jerris <mike@jerris.com>
Wed, 26 Mar 2014 21:11:18 +0000 (17:11 -0400)
src/mod/languages/mod_yaml/Makefile.am

index 4802224a8262fa4492d07a281c1cef70e6b47388..e0aa07db315b3393066c581879a87ac2b9e43b9d 100644 (file)
@@ -1,6 +1,8 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_yaml
 
+if HAVE_YAML
+
 mod_LTLIBRARIES = mod_yaml.la
 mod_yaml_la_SOURCES  = mod_yaml.c
 mod_yaml_la_CFLAGS   = $(AM_CFLAGS)
@@ -8,7 +10,9 @@ mod_yaml_la_CPPFLAGS = $(AM_CPPFLAGS) $(YAML_CFLAGS)
 mod_yaml_la_LIBADD   = $(switch_builddir)/libfreeswitch.la
 mod_yaml_la_LDFLAGS  = -avoid-version -module -no-undefined -shared $(YAML_LIBS)
 
-if HAVE_YAML
 else
-all: $(error You must install libyaml-dev to build mod_yaml)
+install: error
+all: error
+error:
+       $(error You must install libyaml-dev to build mod_yaml)
 endif