]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1391] avoid invoking autogen twice for .c and .h files.
authorDave Hart <hart@ntp.org>
Sat, 28 Nov 2009 23:42:10 +0000 (23:42 +0000)
committerDave Hart <hart@ntp.org>
Sat, 28 Nov 2009 23:42:10 +0000 (23:42 +0000)
bk: 4b11b552_reruTMBh9RtGb2n7HQwqA

ChangeLog
ntpd/Makefile.am
ntpdc/Makefile.am
ntpq/Makefile.am
ntpsnmpd/Makefile.am
sntp/Makefile.am
util/Makefile.am

index 309cbf1bb6605acff682ffcec7a0b2929cc5f32d..307ef2b6bbc212a346e09a3514ed6b0ae22c5f3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 1391] avoid invoking autogen twice for .c and .h files.
 * [Bug 1397] shmget() refclock_shm failing because of file mode.
 (4.2.5p249-RC) 2009/11/28 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 1400] An empty KOD DB file causes sntp to coredump.
index 972c3006d8c6a3b58605664f45b9ce05ab95e3b2..37d4c30e9a1a9b0c0c46299e6113b4d7305cd917 100644 (file)
@@ -203,9 +203,13 @@ ntp_keyword.dummy:
        echo stamp > $@
 
 $(srcdir)/ntp_keyword.h: $(NTP_KEYWORD_OUT)
-       echo $(srcdir)/ntp_keyword.h is unchanged > /dev/null
+       @: do-nothing action to avoid default SCCS get
+       @: .h updated if needed by ntp_keyword.out rule
 
-$(srcdir)/ntpd-opts.c $(srcdir)/ntpd-opts.h: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
+$(srcdir)/ntpd-opts.h: $(srcdir)/ntpd-opts.c
+       @: do-nothing action to avoid default SCCS get, .h built with .c
+       
+$(srcdir)/ntpd-opts.c: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
        $(run_ag) ntpd-opts.def
 
 $(srcdir)/ntpd.1: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
index a809afc7e6d649abc1d8adacdbfad048dab133a6..19eec3ddc1071a4c9f0ec3bca2894ea67041a8c3 100644 (file)
@@ -32,7 +32,10 @@ std_def_list=        $(top_srcdir)/include/debug-opt.def             \
                $(top_srcdir)/include/homerc.def                \
                $(top_srcdir)/include/version.def
 
-$(srcdir)/ntpdc-opts.c $(srcdir)/ntpdc-opts.h: $(srcdir)/ntpdc-opts.def $(std_def_list)
+$(srcdir)/ntpdc-opts.h: $(srcdir)/ntpdc-opts.c
+       @: do-nothing action to avoid default SCCS get, .h built with .c
+       
+$(srcdir)/ntpdc-opts.c: $(srcdir)/ntpdc-opts.def $(std_def_list)
        $(run_ag) ntpdc-opts.def
 
 $(srcdir)/ntpdc.1: $(srcdir)/ntpdc-opts.def $(std_def_list)
index e58f662c41fc75e753c6f658f49ddb55d3e48ec9..a4771a6d732e20920134e21a2a2082d39c841a8c 100644 (file)
@@ -33,7 +33,10 @@ ntpq_SOURCES=        ntpq.c ntpq-subs.c ntpq-opts.c ntpq-opts.h
 
 libntpq_a_SOURCES =    libntpq.c libntpq.h libntpq_subs.c 
 
-$(srcdir)/ntpq-opts.c $(srcdir)/ntpq-opts.h: $(srcdir)/ntpq-opts.def $(std_def_list)
+$(srcdir)/ntpq-opts.h: $(srcdir)/ntpq-opts.c
+       @: do-nothing action to avoid default SCCS get, .h built with .c
+       
+$(srcdir)/ntpq-opts.c: $(srcdir)/ntpq-opts.def $(std_def_list)
        $(run_ag) ntpq-opts.def
 
 $(srcdir)/ntpq.1: $(srcdir)/ntpq-opts.def $(std_def_list)
index c8b0fdca6a66176ecb9f20e8501822f63f1705ea..ede645205bee7022db23d85f870e249ad3eb0eaf 100644 (file)
@@ -30,7 +30,10 @@ std_def_list=        $(top_srcdir)/include/autogen-version.def       \
                $(top_srcdir)/include/homerc.def                \
                $(top_srcdir)/include/version.def
 
-$(srcdir)/ntpsnmpd-opts.c $(srcdir)/ntpsnmpd-opts.h: $(srcdir)/ntpsnmpd-opts.def $(std_def_list)
+$(srcdir)/ntpsnmpd-opts.h: $(srcdir)/ntpsnmpd-opts.c
+       @: do-nothing action to avoid default SCCS get, .h built with .c
+       
+$(srcdir)/ntpsnmpd-opts.c: $(srcdir)/ntpsnmpd-opts.def $(std_def_list)
        $(run_ag) ntpsnmpd-opts.def
 
 $(srcdir)/ntpsnmpd.1: $(srcdir)/ntpsnmpd-opts.def $(std_def_list)
index b61d3c9b62fa446aa12234442b9885f03ab785ca..9575f41b30034f8e717c5914c1eeb0d03f0be563 100644 (file)
@@ -18,7 +18,7 @@ run_ag=       cd $(srcdir) &&                         \
 
 bindir=        ${exec_prefix}/${BINSUBDIR}
 bin_PROGRAMS=  sntp
-CLEANFILES=
+CLEANFILES=    libopts-subdir
 
 SUBDIRS=
 if NEED_LIBOPTS
@@ -125,16 +125,25 @@ $(srcdir)/../COPYRIGHT:
 $(srcdir)/COPYRIGHT: $(srcdir)/../COPYRIGHT
        cat $(srcdir)/../COPYRIGHT > $@
 
-$(srcdir)/sntp-opts.c $(srcdir)/sntp-opts.h: $(srcdir)/sntp-opts.def $(srcdir)/../include/version.def
+$(srcdir)/sntp-opts.h: $(srcdir)/sntp-opts.c
+       @: do-nothing action to avoid default SCCS get, .h built with .c
+       
+$(srcdir)/sntp-opts.c: $(srcdir)/sntp-opts.def $(srcdir)/../include/version.def
        $(run_ag) sntp-opts.def
 
 $(srcdir)/sntp.1: $(srcdir)/sntp-opts.def $(srcdir)/../include/version.def
        $(run_ag) -Tagman1.tpl -bsntp sntp-opts.def
 
 $(srcdir)/sntp-opts.texi $(srcdir)/sntp-opts.menu: $(srcdir)/sntp-opts.def $(srcdir)/../include/version.def
-       $(MAKE) sntp    # aginfo.tpl runs the binary to extract --help usage text
+       $(MAKE) libopts-subdir sntp     # aginfo.tpl runs binary to extract --help usage text
        $(run_ag) -Taginfo.tpl -DLEVEL=section sntp-opts.def
 
+libopts-subdir: $(LIBOPTS_LDADD)
+       touch $@        # LIBOPTS_LDADD is ./libopts/libopts.la if NEED_LIBOPTS
+
+libopts/libopts.la:
+       ( cd libopts && $(MAKE) libopts.la )
+
 $(srcdir)/sntp.html: $(srcdir)/sntp-opts.menu $(srcdir)/sntp-opts.texi $(srcdir)/sntp.texi $(srcdir)/version.texi
        cd $(srcdir) && makeinfo --force --html --no-split -o sntp.html sntp.texi
 
index 8a7e7449ef5afd641dbd41295ad2d833be089114..f546abea7ff8d35e2397b3e98b522654d663eed9 100644 (file)
@@ -32,7 +32,10 @@ std_def_list=        $(top_srcdir)/include/debug-opt.def             \
                $(top_srcdir)/include/homerc.def                \
                $(top_srcdir)/include/version.def
 
-$(srcdir)/ntp-keygen-opts.c $(srcdir)/ntp-keygen-opts.h: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
+$(srcdir)/ntp-keygen-opts.h: $(srcdir)/ntp-keygen-opts.c
+       @: do-nothing action to avoid default SCCS get, .h built with .c
+       
+$(srcdir)/ntp-keygen-opts.c: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
        $(run_ag) ntp-keygen-opts.def
 
 $(srcdir)/ntp-keygen.1: $(srcdir)/ntp-keygen-opts.def $(std_def_list)