Commit c3a88a89 authored by netfab's avatar netfab

Kill automake SUBDIRS.

Thanks to Václav Haisman.

https://lists.gnu.org/archive/html/automake/2018-01/msg00014.html
parent 083827ea
......@@ -3,6 +3,11 @@ ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --enable-gcc-wall --enable-gcc-werror --enable-as-needed
SUBDIRS = data src
include %D%/src/include/Makefile.am
include %D%/src/lib/utils/Makefile.am
include %D%/src/lib/dbus/Makefile.am
include %D%/src/lib/shared/Makefile.am
include %D%/src/bin/daemon/Makefile.am
include %D%/src/bin/service/Makefile.am
include %D%/data/dbus/Makefile.am
......@@ -175,18 +175,7 @@ AX_PTHREAD
AC_CONFIG_FILES([
Makefile
data/Makefile
data/dbus/Makefile
data/dbus/GLogiK.conf
src/Makefile
src/include/Makefile
src/lib/Makefile
src/lib/utils/Makefile
src/lib/dbus/Makefile
src/lib/shared/Makefile
src/bin/Makefile
src/bin/daemon/Makefile
src/bin/service/Makefile
])
# Generate config.status and launch it.
......
dbus_system_dir = $(datadir)/dbus-1/system.d/
dist_dbus_system__DATA = GLogiK.conf
dist_dbus_system__DATA = %D%/GLogiK.conf
SUBDIRS = include lib bin
SUBDIRS = daemon service
......@@ -22,20 +22,30 @@ GLogiKd_LDADD = \
@BOOST_IOSTREAMS_LIB@ \
@LIBUDEV_LIBS@ \
@PTHREAD_LIBS@ \
../../lib/utils/libGLogiKUtils.la \
../../lib/dbus/libGLogiKDBus.la \
../../lib/shared/libGLogiKShared.la
libGLogiKUtils.la \
libGLogiKDBus.la \
libGLogiKShared.la
GLogiKd_SOURCES = \
main.cpp \
daemon.cpp daemon.h \
daemonControl.cpp daemonControl.h \
devicesManager.cpp devicesManager.h \
keyboardDriver.cpp keyboardDriver.h \
virtualKeyboard.cpp virtualKeyboard.h \
logitechG510.cpp logitechG510.h \
macrosManager.cpp macrosManager.h \
clientsManager.cpp clientsManager.h \
clientsSignals.cpp clientsSignals.h \
client.cpp client.h
%D%/main.cpp \
%D%/daemon.cpp \
%D%/daemon.h \
%D%/daemonControl.cpp \
%D%/daemonControl.h \
%D%/devicesManager.cpp \
%D%/devicesManager.h \
%D%/keyboardDriver.cpp \
%D%/keyboardDriver.h \
%D%/virtualKeyboard.cpp \
%D%/virtualKeyboard.h \
%D%/logitechG510.cpp \
%D%/logitechG510.h \
%D%/macrosManager.cpp \
%D%/macrosManager.h \
%D%/clientsManager.cpp \
%D%/clientsManager.h \
%D%/clientsSignals.cpp \
%D%/clientsSignals.h \
%D%/client.cpp \
%D%/client.h
......@@ -14,13 +14,17 @@ GLogiKs_LDADD = \
@BOOST_SERIALIZATION_LIB@ \
@BOOST_SYSTEM_LIB@ \
@BOOST_FILESYSTEM_LIB@ \
../../lib/dbus/libGLogiKDBus.la \
../../lib/utils/libGLogiKUtils.la \
../../lib/shared/libGLogiKShared.la
libGLogiKDBus.la \
libGLogiKUtils.la \
libGLogiKShared.la
GLogiKs_SOURCES = \
main.cpp \
service.cpp service.h \
serviceDBusHandler.cpp serviceDBusHandler.h \
devicesHandler.cpp devicesHandler.h \
warningCheck.cpp warningCheck.h
%D%/main.cpp \
%D%/service.cpp \
%D%/service.h \
%D%/serviceDBusHandler.cpp \
%D%/serviceDBusHandler.h \
%D%/devicesHandler.cpp \
%D%/devicesHandler.h \
%D%/warningCheck.cpp \
%D%/warningCheck.h
EXTRA_DIST = enums.h
EXTRA_DIST = %D%/enums.h
SUBDIRS = utils dbus shared
lib_LTLIBRARIES=libGLogiKDBus.la
lib_LTLIBRARIES += libGLogiKDBus.la
libGLogiKDBus_la_CXXFLAGS = \
@AM_CXXFLAGS@ \
......@@ -10,37 +10,64 @@ libGLogiKDBus_la_LDFLAGS = \
libGLogiKDBus_la_LIBADD = \
$(DBUS_LIBS) \
../utils/libGLogiKUtils.la
libGLogiKUtils.la
# events/GKDBusEventStringToVoid.cpp events/GKDBusEventStringToVoid.h
libGLogiKDBus_la_SOURCES = \
GKDBusConnection.h \
GKDBus.cpp GKDBus.h \
arguments/GKDBusArgument.cpp arguments/GKDBusArgument.h \
arguments/GKDBusArgString.cpp arguments/GKDBusArgString.h \
arguments/GKDBusArgBoolean.cpp arguments/GKDBusArgBoolean.h \
arguments/GKDBusArgByte.cpp arguments/GKDBusArgByte.h \
arguments/GKDBusArgUInt16.cpp arguments/GKDBusArgUInt16.h \
arguments/GKDBusArgMacro.cpp arguments/GKDBusArgMacro.h \
arguments/GKDBusArgMacrosBank.cpp arguments/GKDBusArgMacrosBank.h \
messages/GKDBusMessage.cpp messages/GKDBusMessage.h \
messages/GKDBusReply.cpp messages/GKDBusReply.h \
messages/GKDBusErrorReply.cpp messages/GKDBusErrorReply.h \
messages/GKDBusRemoteMethodCall.cpp messages/GKDBusRemoteMethodCall.h \
messages/GKDBusBroadcastSignal.cpp messages/GKDBusBroadcastSignal.h \
messages/GKDBusTargetsSignal.cpp messages/GKDBusTargetsSignal.h \
events/GKDBusEvent.cpp events/GKDBusEvent.h \
events/GKDBusEventVoidToVoid.cpp events/GKDBusEventVoidToVoid.h \
events/GKDBusEventStringToBool.cpp events/GKDBusEventStringToBool.h \
events/GKDBusEventTwoStringsToBool.cpp events/GKDBusEventTwoStringsToBool.h \
events/GKDBusEventStringToString.cpp events/GKDBusEventStringToString.h \
events/GKDBusEventTwoStringsToString.cpp events/GKDBusEventTwoStringsToString.h \
events/GKDBusEventStringToStringsArray.cpp events/GKDBusEventStringToStringsArray.h \
events/GKDBusEventTwoStringsToStringsArray.cpp events/GKDBusEventTwoStringsToStringsArray.h \
events/GKDBusEventTwoStringsOneByteToBool.cpp events/GKDBusEventTwoStringsOneByteToBool.h \
events/GKDBusEventTwoStringsThreeBytesToBool.cpp events/GKDBusEventTwoStringsThreeBytesToBool.h \
events/GKDBusEventTwoStringsOneByteOneMacrosBankToBool.cpp GKDBusEventTwoStringsOneByteOneMacrosBankToBool.h \
events/GKDBusEventThreeStringsOneByteToMacro.cpp events/GKDBusEventThreeStringsOneByteToMacro.h \
events/GKDBusEventStringsArrayToVoid.cpp events/GKDBusEventStringsArrayToVoid.h \
GKDBusEvents.cpp GKDBusEvents.h
%D%/arguments/GKDBusArgument.cpp \
%D%/arguments/GKDBusArgument.h \
%D%/arguments/GKDBusArgString.cpp \
%D%/arguments/GKDBusArgString.h \
%D%/arguments/GKDBusArgBoolean.cpp \
%D%/arguments/GKDBusArgBoolean.h \
%D%/arguments/GKDBusArgByte.cpp \
%D%/arguments/GKDBusArgByte.h \
%D%/arguments/GKDBusArgUInt16.cpp \
%D%/arguments/GKDBusArgUInt16.h \
%D%/arguments/GKDBusArgMacro.cpp \
%D%/arguments/GKDBusArgMacro.h \
%D%/arguments/GKDBusArgMacrosBank.cpp \
%D%/arguments/GKDBusArgMacrosBank.h \
%D%/messages/GKDBusMessage.cpp \
%D%/messages/GKDBusMessage.h \
%D%/messages/GKDBusReply.cpp \
%D%/messages/GKDBusReply.h \
%D%/messages/GKDBusErrorReply.cpp \
%D%/messages/GKDBusErrorReply.h \
%D%/messages/GKDBusRemoteMethodCall.cpp \
%D%/messages/GKDBusRemoteMethodCall.h \
%D%/messages/GKDBusBroadcastSignal.cpp \
%D%/messages/GKDBusBroadcastSignal.h \
%D%/messages/GKDBusTargetsSignal.cpp \
%D%/messages/GKDBusTargetsSignal.h \
%D%/events/GKDBusEvent.cpp \
%D%/events/GKDBusEvent.h \
%D%/events/GKDBusEventVoidToVoid.cpp \
%D%/events/GKDBusEventVoidToVoid.h \
%D%/events/GKDBusEventStringToBool.cpp \
%D%/events/GKDBusEventStringToBool.h \
%D%/events/GKDBusEventTwoStringsToBool.cpp \
%D%/events/GKDBusEventTwoStringsToBool.h \
%D%/events/GKDBusEventStringToString.cpp \
%D%/events/GKDBusEventStringToString.h \
%D%/events/GKDBusEventTwoStringsToString.cpp \
%D%/events/GKDBusEventTwoStringsToString.h \
%D%/events/GKDBusEventStringToStringsArray.cpp \
%D%/events/GKDBusEventStringToStringsArray.h \
%D%/events/GKDBusEventTwoStringsToStringsArray.cpp \
%D%/events/GKDBusEventTwoStringsToStringsArray.h \
%D%/events/GKDBusEventTwoStringsOneByteToBool.cpp \
%D%/events/GKDBusEventTwoStringsOneByteToBool.h \
%D%/events/GKDBusEventTwoStringsThreeBytesToBool.cpp \
%D%/events/GKDBusEventTwoStringsThreeBytesToBool.h \
%D%/events/GKDBusEventTwoStringsOneByteOneMacrosBankToBool.cpp \
%D%/events/GKDBusEventTwoStringsOneByteOneMacrosBankToBool.h \
%D%/events/GKDBusEventThreeStringsOneByteToMacro.cpp \
%D%/events/GKDBusEventThreeStringsOneByteToMacro.h \
%D%/events/GKDBusEventStringsArrayToVoid.cpp \
%D%/events/GKDBusEventStringsArrayToVoid.h \
%D%/GKDBusConnection.h \
%D%/GKDBus.cpp GKDBus.h \
%D%/GKDBusEvents.cpp \
%D%/GKDBusEvents.h
lib_LTLIBRARIES=libGLogiKShared.la
lib_LTLIBRARIES += libGLogiKShared.la
libGLogiKShared_la_CXXFLAGS = \
@AM_CXXFLAGS@ \
......@@ -15,12 +15,17 @@ libGLogiKShared_la_LIBADD = \
@BOOST_SERIALIZATION_LIB@ \
@BOOST_SYSTEM_LIB@ \
@BOOST_FILESYSTEM_LIB@ \
../utils/libGLogiKUtils.la
libGLogiKUtils.la
libGLogiKShared_la_SOURCES = \
keyEvent.h \
macrosBanks.cpp macrosBanks.h \
deviceConfigurationFile.cpp deviceConfigurationFile.h \
deviceProperties.cpp deviceProperties.h \
glogik.cpp glogik.h \
sessionManager.cpp sessionManager.h
%D%/keyEvent.h \
%D%/macrosBanks.cpp \
%D%/macrosBanks.h \
%D%/deviceConfigurationFile.cpp \
%D%/deviceConfigurationFile.h \
%D%/deviceProperties.cpp \
%D%/deviceProperties.h \
%D%/glogik.cpp \
%D%/glogik.h \
%D%/sessionManager.cpp \
%D%/sessionManager.h
lib_LTLIBRARIES=libGLogiKUtils.la
lib_LTLIBRARIES = libGLogiKUtils.la
libGLogiKUtils_la_CXXFLAGS = \
@AM_CXXFLAGS@ \
......@@ -14,10 +14,15 @@ libGLogiKUtils_la_LIBADD = \
@BOOST_FILESYSTEM_LIB@
libGLogiKUtils_la_SOURCES = \
randomGenerator.cpp randomGenerator.h \
filesystem.cpp filesystem.h \
functions.cpp functions.h \
exception.cpp exception.h \
XDGUserDirs.cpp XDGUserDirs.h \
log.h \
utils.h
%D%/randomGenerator.cpp \
%D%/randomGenerator.h \
%D%/filesystem.cpp \
%D%/filesystem.h \
%D%/functions.cpp \
%D%/functions.h \
%D%/exception.cpp \
%D%/exception.h \
%D%/XDGUserDirs.cpp \
%D%/XDGUserDirs.h \
%D%/log.h \
%D%/utils.h
......@@ -19,20 +19,17 @@ GLogiK=$PWD/.. CD=. {
macro=m4/ {
}
data=data/ {
Makefile.am
dbus=dbus/ {
Makefile.am
GLogiK.conf.in
}
}
srcfiles=src/ {
Makefile.am
include=include/ {
Makefile.am
enums.h
}
binaries=bin/ {
Makefile.am
daemon=daemon/ {
Makefile.am
main.cpp
......@@ -71,7 +68,6 @@ GLogiK=$PWD/.. CD=. {
}
}
libraries=lib/ {
Makefile.am
GLogiKDBus=dbus/ {
Makefile.am
arguments=arguments/ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment