From b1065ccbdc7a11e5a92736bbd391bf1dcfbf0b2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Thu, 11 Jul 2013 11:15:34 +0200 Subject: [PATCH] Automatically binding targets to the correct (hardcoded for now) paths. --- Makefile.am | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index e8624a5..6f94d85 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,6 +36,7 @@ src/graph/loggraph.moc: clean-loggraph-extra: rm -f src/graph/*.moc.cpp + rm -f bin/modules/loggraph bin_lognet_SOURCES = src/net/lognet.cpp src/net/lognet.moc.cpp bin_lognet_CPPFLAGS = $(bin_lognet_CFLAGS) @@ -45,6 +46,7 @@ src/net/lognet.moc.cpp: clean-lognet-extra: rm -f src/net/*.moc.cpp + rm -f bin/modules/lognet bin_logker_SOURCES = src/kernel/kernel.cpp src/kernel/kernel.moc bin_logker_CPPFLAGS = $(bin_logker_CFLAGS) @@ -90,6 +92,7 @@ src/edit/editor.moc.cpp: src/edit/editor.h clean-logedit-extra: rm -f src/edit/*.moc.cpp + rm -f bin/modules/logedit bin_lgconfig_SOURCES = src/lgconfig/lgconfig.cpp src/lgconfig/lgconfig.moc bin_lgconfig_CPPFLAGS = $(bin_lgconfig_CFLAGS) @@ -117,9 +120,16 @@ src/help/help.moc: clean-loghelp-extra: rm -f src/help/*.moc - + rm -f bin/modules/loghelp + +all-local: + test -d bin/modules || mkdir bin/modules + ln -fs ../logedit bin/modules/ + ln -fs ../loggraph bin/modules/ + ln -fs ../loghelp bin/modules/ + ln -fs ../lognet bin/modules/ + CLEANFILES = \ - %.moc \ %.o \ %.bak \ %~ @@ -132,5 +142,6 @@ clean-am: \ clean-lgconfig-extra \ clean-logcomp-extra \ clean-loghelp-extra + rm -r bin/modules dist_noinst_SCRIPTS = autogen.sh -- 2.30.2