diff --git a/configure.ac b/configure.ac index 3dad487..1e0d311 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,7 @@ AC_CONFIG_HEADERS(config.h) AC_GNU_SOURCE AC_PROG_LIBTOOL +AM_PROG_CC_C_O ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## @@ -90,6 +91,7 @@ data/Makefile data/images/Makefile data/theme/Makefile data/theme/images/Makefile +data/.proto/Makefile ]) AC_OUTPUT diff --git a/data/.proto/Makefile.am b/data/.proto/Makefile.am new file mode 100644 index 0000000..ea030ad --- /dev/null +++ b/data/.proto/Makefile.am @@ -0,0 +1,15 @@ +MAINTAINERCLEANFILES = Makefile.in + +EDJE_CC = @edje_cc@ +EDJE_FLAGS = -id $(top_srcdir)/data/images + +filesdir = $(datadir)/$(PACKAGE)/.proto +files_DATA = proto.edj proto.edc + +proto.edj: Makefile proto.edc + $(EDJE_CC) $(EDJE_FLAGS) \ + $(top_srcdir)/data/.proto/proto.edc \ + $(top_builddir)/data/.proto/proto.edj + +clean-local: + rm -f *.edj diff --git a/data/Makefile.am b/data/Makefile.am index e00fead..ddcbe49 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,3 +1,3 @@ MAINTAINERCLEANFILES = Makefile.in -SUBDIRS = images theme +SUBDIRS = images theme .proto diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am index 4d49394..1dac4cf 100644 --- a/src/bin/Makefile.am +++ b/src/bin/Makefile.am @@ -2,7 +2,9 @@ MAINTAINERCLEANFILES = Makefile.in bin_PROGRAMS = enventor enventorql -AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ +AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \ + -DPACKAGE_BIN_DIR=\"$(bindir)\" \ + -DPACKAGE_LIB_DIR=\"$(libdir)\" \ -I$(top_srcdir)/src/bin \ -I$(top_srcdir)/include \ @ENVENTOR_CFLAGS@