Automatically binding targets to the correct (hardcoded for now) paths.
authorRafał Długołęcki <kontakt@dlugolecki.net.pl>
Thu, 11 Jul 2013 09:15:34 +0000 (11:15 +0200)
committerRafał Długołęcki <kontakt@dlugolecki.net.pl>
Thu, 11 Jul 2013 09:15:34 +0000 (11:15 +0200)
Makefile.am

index e8624a57d75f34021ebcd16c0819cf5496bdb45f..6f94d857d3720906e46838107f8dd57213086a11 100644 (file)
@@ -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