pkgconfigdir = ${libdir}/pkgconfig
+BASICDATA = m17n-core.pc m17n-shell.pc
if WITH_GUI
-PKGDATA = m17n-core.pc m17n-shell.pc m17n-gui.pc
+PKGDATA = $(BASICDATA) m17n-gui.pc
else
-PKGDATA = m17n-core.pc m17n-shell.pc
+PKGDATA = $(BASICDATA)
endif
pkgconfig_DATA = $(PKGDATA)
## Note: Source files have preifx "m" but executables have prefix
## "m17n-" to avoid confliction of program names.
-bin_PROGRAMS = m17n-conv
+BASICPROGS = m17n-conv
if WITH_GUI
-bin_PROGRAMS += m17n-view m17n-date m17n-dump m17n-edit
+bin_PROGRAMS = $(BASICPROGS) m17n-view m17n-date m17n-dump m17n-edit
+else
+bin_PROGRAMS = $(BASICPROGS)
endif
common_ldflags = ${top_srcdir}/src/libm17n-core.la ${top_srcdir}/src/libm17n.la
VINFO = -version-info @API_VERSION@
-BUILD_LIBS = libmimx-anthy.la
+BASIC_BUILD_LIBS = libmimx-anthy.la
if WITH_GUI
-BUILD_LIBS += libmimx-ispell.la
+BUILD_LIBS = $(BASIC_BUILD_LIBS) libmimx-ispell.la
+else
+BUILD_LIBS = $(BASIC_BUILD_LIBS)
endif
lib_LTLIBRARIES = $(BUILD_LIBS)
VINFO = -version-info @API_VERSION@
-BUILD_LIBS = libm17n-core.la libm17n.la
+BASIC_BUILD_LIBS = libm17n-core.la libm17n.la
if WITH_GUI
-BUILD_LIBS += libm17n-gui.la libm17n-X.la libm17n-gd.la
+BUILD_LIBS = $(BASIC_BUILD_LIBS) libm17n-gui.la libm17n-X.la libm17n-gd.la
+else
+BUILD_LIBS = $(BASIC_BUILD_LIBS)
endif
lib_LTLIBRARIES = $(BUILD_LIBS)