[nautilus-actions] Generate the check-header.c source if it is missing



commit 04b894d9f1b854a18650831779643575a24ba073
Author: Pierre Wieser <pwieser trychlos org>
Date:   Thu Jan 20 23:06:47 2011 +0100

    Generate the check-header.c source if it is missing
    
    + tools/Makefile.am

 ChangeLog                        |    2 ++
 src/nact/{nact-main.c => main.c} |    0
 tools/Makefile.am                |    4 ++++
 3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b0d7b40..b68cbf1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-01-20 Pierre Wieser <pwieser trychlos org>
 
+	* tools/Makefile.am: Generate the check-header.c source if it is missing.
+
 	* src/plugin-tracker/na-tracker-dbus.c:
 	* src/plugin-tracker/na-tracker-dbus.h:
 	* src/plugin-tracker/na-tracker.c:
diff --git a/src/nact/nact-main.c b/src/nact/main.c
similarity index 100%
rename from src/nact/nact-main.c
rename to src/nact/main.c
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 2ecd05e..7d3c0f1 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -44,3 +44,7 @@ check_header_LDADD = \
 	$(top_builddir)/src/core/libna-core.la						\
 	$(NAUTILUS_ACTIONS_LIBS)									\
 	$(NULL)
+
+# this is just a fake code to have the make behave well
+check-header.c:
+	[ -s $@ ] || echo "int main( int argc, char **argv ){ return 0; }" > $@



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]