and disable theme too
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 26 Jan 2010 11:38:01 +0000 (11:38 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 26 Jan 2010 11:38:01 +0000 (11:38 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/emotion@45583 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

data/Makefile.am
m4/efl_binary.m4
src/bin/Makefile.am

index 92f1de4..425c37a 100644 (file)
@@ -5,7 +5,14 @@ EDJE_CC = @edje_cc@
 EDJE_FLAGS = -v -id $(top_srcdir)/data -fd $(top_srcdir)/data
 
 filesdir = $(datadir)/emotion/data
-files_DATA = theme.edj
+
+files_DATA =
+
+if BUILD_EMOTION_TEST
+
+files_DATA += theme.edj
+
+endif
 
 EXTRA_DIST = \
 bpause.png \
index 0fe85ab..48c0b95 100644 (file)
@@ -3,7 +3,7 @@ dnl That code is public domain and can be freely used or copied.
 
 dnl Macro that check if a binary is built or not
 
-dnl Usage: EFL_ENABLE_BIN(binary)
+dnl Usage: EFL_ENABLE_BIN(binary[, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
 dnl Call AC_SUBST(BINARY_PRG) (BINARY is the uppercase of binary, - being tranformed into _)
 dnl Define have_binary (- is tranformed into _)
 dnl Define conditional BUILD_BINARY (BINARY is the uppercase of binary, - being tranformed into _)
index 1577408..498c490 100644 (file)
@@ -12,8 +12,13 @@ AM_CPPFLAGS = \
 @ECORE_X_CFLAGS@ \
 @ECORE_FB_CFLAGS@
 
-bin_PROGRAMS = @EMOTION_TEST_PRG@
-EXTRA_PROGRAMS = emotion_test
+bin_PROGRAMS =
+
+if BUILD_EMOTION_TEST
+
+bin_PROGRAMS += emotion_test
+
+endif
 
 emotion_test_SOURCES = emotion_test_main.c