~ubuntu-branches/debian/squeeze/ntp/squeeze

« back to all changes in this revision

Viewing changes to .pc/autotools.patch/ntpd/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2010-05-24 11:09:51 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100524110951-1o7gh469ygochf4n
Tags: 1:4.2.6.p1+dfsg-1
* New upstream version
  - They no longer ship arlib, adjust dfsg.patch.
  - Drop kfreebsd.patch, applied upstream
  - Update patches for upstream changes.
* Remove the obsolete config files:

  for ntp:
  - /etc/logcheck/ignore.d.server/ntp, removed in 1:4.2.6+dfsg-1
  - /etc/dhcp3/dhclient-enter-hooks.d/ntp, replaced by exit hooks in
    1:4.2.4p4+dfsg-3
  - /etc/network/if-up.d/ntp, removed in 1:4.2.4p0+dfsg-1

  for ntpdate:
  - /etc/dhcp3/dhclient-enter-hooks.d/ntpdate, replaced by exit hooks in
    1:4.2.4p4+dfsg-3

  Use dpkg 1.15.7.2's dpkg-maintscript-helper.  This needs
  a Pre-Depends to work, else it's never going to be removed.
  (Closes: #569530)
* Add "Depends: ${misc:Depends}" to ntp-doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# subdir to warn folks if there is another version there.
21
21
 
22
22
 
 
23
 
23
24
VPATH = @srcdir@
24
25
pkgdatadir = $(datadir)/@PACKAGE@
25
26
pkgincludedir = $(includedir)/@PACKAGE@
39
40
POST_UNINSTALL = :
40
41
build_triplet = @build@
41
42
host_triplet = @host@
42
 
bin_PROGRAMS = ntpd$(EXEEXT) @MAKE_NTPDSIM@
 
43
@NTP_BINSUBDIR_IS_BIN_TRUE@bin_PROGRAMS = ntpd$(EXEEXT) @MAKE_NTPDSIM@
 
44
@NTP_BINSUBDIR_IS_BIN_FALSE@sbin_PROGRAMS = ntpd$(EXEEXT) \
 
45
@NTP_BINSUBDIR_IS_BIN_FALSE@    @MAKE_NTPDSIM@ $(am__empty)
43
46
EXTRA_PROGRAMS = check_y2k$(EXEEXT) ntpdsim$(EXEEXT) \
44
47
        keyword-gen$(EXEEXT)
45
48
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
93
96
        refclock_wwv.$(OBJEXT) refclock_wwvb.$(OBJEXT) \
94
97
        refclock_zyfer.$(OBJEXT) $(am__objects_1)
95
98
libntpd_a_OBJECTS = $(am_libntpd_a_OBJECTS)
96
 
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
97
 
PROGRAMS = $(bin_PROGRAMS)
 
99
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" \
 
100
        "$(DESTDIR)$(man1dir)"
 
101
PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS)
98
102
check_y2k_SOURCES = check_y2k.c
99
103
check_y2k_OBJECTS = check_y2k.$(OBJEXT)
100
104
am__DEPENDENCIES_1 = version.o libntpd.a
169
173
man1dir = $(mandir)/man1
170
174
NROFF = nroff
171
175
MANS = $(man_MANS)
 
176
DATA = $(noinst_DATA)
172
177
ETAGS = etags
173
178
CTAGS = ctags
174
179
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
175
180
ACLOCAL = @ACLOCAL@
176
181
AMTAR = @AMTAR@
177
182
AR = @AR@
178
 
ARLIB_DIR = @ARLIB_DIR@
179
183
AUTOCONF = @AUTOCONF@
180
184
AUTOHEADER = @AUTOHEADER@
181
185
AUTOMAKE = @AUTOMAKE@
271
275
am__quote = @am__quote@
272
276
am__tar = @am__tar@
273
277
am__untar = @am__untar@
274
 
bindir = ${exec_prefix}/${BINSUBDIR}
 
278
bindir = @bindir@
275
279
build = @build@
276
280
build_alias = @build_alias@
277
281
build_cpu = @build_cpu@
326
330
@NTP_CROSSCOMPILE_FALSE@@SAVECONFIG_ENABLED_TRUE@CHECK_SAVECONFIG = check-saveconfig
327
331
@NTP_CROSSCOMPILE_TRUE@@SAVECONFIG_ENABLED_TRUE@CHECK_SAVECONFIG = 
328
332
@SAVECONFIG_ENABLED_FALSE@CHECK_SAVECONFIG = 
329
 
@NTP_CROSSCOMPILE_FALSE@NTP_KEYWORD_OUT = ntp_keyword.out
330
 
@NTP_CROSSCOMPILE_TRUE@NTP_KEYWORD_OUT = ntp_keyword.dummy
331
333
@VPATH_HACK_FALSE@VPHACK = 
332
334
 
333
335
#
343
345
@VPATH_HACK_TRUE@VPHACK = vphack
344
346
@VPATH_HACK_FALSE@VPHACK_AFTER = 
345
347
@VPATH_HACK_TRUE@VPHACK_AFTER = vphack_after
 
348
 
 
349
# BUILT_SOURCES which should also be in EXTRA_DIST
 
350
B_S_DIST = \
 
351
        ntpd-opts.c     \
 
352
        ntpd-opts.h     \
 
353
        $(NULL)
 
354
 
346
355
BUILT_SOURCES = $(VPHACK) ntp_parser.c ntp_parser.h $(VPHACK_AFTER) \
347
 
        ntp_keyword.h ntpd-opts.c ntpd-opts.h ntpd.1 ntpd-opts.texi \
348
 
        ntpd-opts.menu .deps-ver
349
 
man_MANS = ntpd.1
 
356
        $(B_S_DIST) $(NULL) .deps-ver
 
357
man_MANS = $(srcdir)/ntpd.1
350
358
 
351
359
# ntpdsim.1 is a remnant along with all the ntpdsim-opts.* files, the
352
360
# simulator currently uses ntpd-opts.[ch].  This also means there is no
357
365
# sqrt                                ntp_control.o
358
366
# floor                               refclock_wwv.o
359
367
# which are (usually) provided by -lm.
360
 
keyword_gen_LDADD = ../libntp/libntp.a
361
 
ntpd_LDADD = $(LDADD) -lm @LCRYPTO@ @LSCF@ $(LIBOPTS_LDADD) ../libntp/libntp.a
362
 
ntpdsim_LDADD = $(LDADD) -lm @LCRYPTO@ @LSCF@ $(LIBOPTS_LDADD) ../libntp/libntpsim.a
 
368
ntpd_LDADD = $(LDADD) $(LIBOPTS_LDADD) ../libntp/libntp.a -lm @LCRYPTO@ @LSCF@
 
369
ntpdsim_LDADD = $(LDADD) $(LIBOPTS_LDADD) ../libntp/libntpsim.a -lm @LCRYPTO@ @LSCF@
363
370
ntpdsim_CFLAGS = $(CFLAGS) -DSIM
364
371
check_y2k_LDADD = $(LDADD) ../libntp/libntp.a
365
 
DISTCLEANFILES = keyword-gen .version version.c
366
 
CLEANFILES = check-saveconfig compsave.conf ntp_keyword.out \
367
 
        ntp_keyword.dummy .deps-ver
 
372
keyword_gen_LDADD = ../libntp/libntp.a  # we don't want $(LDADD) here
 
373
DISTCLEANFILES = \
 
374
        keyword-gen             \
 
375
        .version                \
 
376
        version.c               \
 
377
        $(NULL)
 
378
 
 
379
CLEANFILES = check-saveconfig compsave.conf k-g-u-submake $(NULL) \
 
380
        .deps-ver
368
381
EXTRA_DIST = \
369
382
        complete.conf           \
 
383
        keyword-gen-utd         \
 
384
        ntpd.1                  \
370
385
        ntpd-opts.def           \
 
386
        ntpd-opts.menu          \
 
387
        ntpd-opts.texi          \
371
388
        ntpdbase-opts.def       \
372
 
        ntp_keyword.h           \
373
389
        refclock_msfees.c       \
374
390
        refclock_trak.c         \
375
 
        $(BUILT_SOURCES)        \
 
391
        $(B_S_DIST)             \
376
392
        $(NULL)
377
393
 
378
394
ETAGS_ARGS = Makefile.am
379
395
###                                                     Y2Kfixes
380
396
check_PROGRAMS = @MAKE_CHECK_Y2K@
381
 
run_ag = cd $(srcdir) &&                                        \
382
 
                env PATH="$(abs_builddir):$(PATH)"              \
 
397
noinst_DATA = $(srcdir)/ntpd-opts.texi $(srcdir)/ntpd-opts.menu
 
398
run_ag = cd $(srcdir) &&        env PATH="$(abs_builddir):$(PATH)"      \
383
399
                autogen -L ../include --writable
384
400
 
385
401
std_def_list = $(top_srcdir)/include/autogen-version.def        \
390
406
        cmd_args.c              \
391
407
        ntp_config.c            \
392
408
        ntp_data_structures.c   \
 
409
        ntp_keyword.h           \
393
410
        ntp_io.c                \
394
411
        ntp_parser.y            \
395
412
        ntp_scanner.c           \
559
576
        list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
560
577
        echo " rm -f" $$list; \
561
578
        rm -f $$list
 
579
install-sbinPROGRAMS: $(sbin_PROGRAMS)
 
580
        @$(NORMAL_INSTALL)
 
581
        test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
 
582
        @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
 
583
        for p in $$list; do echo "$$p $$p"; done | \
 
584
        sed 's/$(EXEEXT)$$//' | \
 
585
        while read p p1; do if test -f $$p || test -f $$p1; \
 
586
          then echo "$$p"; echo "$$p"; else :; fi; \
 
587
        done | \
 
588
        sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
 
589
            -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
 
590
        sed 'N;N;N;s,\n, ,g' | \
 
591
        $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
 
592
          { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
 
593
            if ($$2 == $$4) files[d] = files[d] " " $$1; \
 
594
            else { print "f", $$3 "/" $$4, $$1; } } \
 
595
          END { for (d in files) print "f", d, files[d] }' | \
 
596
        while read type dir files; do \
 
597
            if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
 
598
            test -z "$$files" || { \
 
599
            echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
 
600
            $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
 
601
            } \
 
602
        ; done
 
603
 
 
604
uninstall-sbinPROGRAMS:
 
605
        @$(NORMAL_UNINSTALL)
 
606
        @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
 
607
        files=`for p in $$list; do echo "$$p"; done | \
 
608
          sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
 
609
              -e 's/$$/$(EXEEXT)/' `; \
 
610
        test -n "$$list" || exit 0; \
 
611
        echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
 
612
        cd "$(DESTDIR)$(sbindir)" && rm -f $$files
 
613
 
 
614
clean-sbinPROGRAMS:
 
615
        @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \
 
616
        echo " rm -f" $$list; \
 
617
        rm -f $$list || exit $$?; \
 
618
        test -n "$(EXEEXT)" || exit 0; \
 
619
        list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
 
620
        echo " rm -f" $$list; \
 
621
        rm -f $$list
562
622
check_y2k$(EXEEXT): $(check_y2k_OBJECTS) $(check_y2k_DEPENDENCIES) 
563
623
        @rm -f check_y2k$(EXEEXT)
564
624
        $(LINK) $(check_y2k_OBJECTS) $(check_y2k_LDADD) $(LIBS)
950
1010
        $(MAKE) $(AM_MAKEFLAGS) check-local
951
1011
check: $(BUILT_SOURCES)
952
1012
        $(MAKE) $(AM_MAKEFLAGS) check-am
953
 
all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(MANS)
 
1013
all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(MANS) $(DATA)
954
1014
installdirs:
955
 
        for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
 
1015
        for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man1dir)"; do \
956
1016
          test -z "$$dir" || $(MKDIR_P) "$$dir"; \
957
1017
        done
958
1018
install: $(BUILT_SOURCES)
989
1049
clean: clean-am
990
1050
 
991
1051
clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
992
 
        clean-libtool clean-noinstLIBRARIES mostlyclean-am
 
1052
        clean-libtool clean-noinstLIBRARIES clean-sbinPROGRAMS \
 
1053
        mostlyclean-am
993
1054
 
994
1055
distclean: distclean-am
995
1056
        -rm -rf ./$(DEPDIR)
1015
1076
 
1016
1077
install-dvi-am:
1017
1078
 
1018
 
install-exec-am: install-binPROGRAMS
 
1079
install-exec-am: install-binPROGRAMS install-sbinPROGRAMS
1019
1080
        @$(NORMAL_INSTALL)
1020
1081
        $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
1021
1082
install-html: install-html-am
1056
1117
 
1057
1118
ps-am:
1058
1119
 
1059
 
uninstall-am: uninstall-binPROGRAMS uninstall-man
 
1120
uninstall-am: uninstall-binPROGRAMS uninstall-man \
 
1121
        uninstall-sbinPROGRAMS
1060
1122
 
1061
1123
uninstall-man: uninstall-man1
1062
1124
 
1065
1127
 
1066
1128
.PHONY: CTAGS GTAGS all all-am check check-am check-local clean \
1067
1129
        clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
1068
 
        clean-libtool clean-noinstLIBRARIES ctags distclean \
1069
 
        distclean-compile distclean-generic distclean-libtool \
1070
 
        distclean-tags distdir dvi dvi-am html html-am info info-am \
1071
 
        install install-am install-binPROGRAMS install-data \
1072
 
        install-data-am install-dvi install-dvi-am install-exec \
1073
 
        install-exec-am install-exec-hook install-html install-html-am \
1074
 
        install-info install-info-am install-man install-man1 \
1075
 
        install-pdf install-pdf-am install-ps install-ps-am \
1076
 
        install-strip installcheck installcheck-am installdirs \
1077
 
        maintainer-clean maintainer-clean-generic mostlyclean \
1078
 
        mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1079
 
        pdf pdf-am ps ps-am tags uninstall uninstall-am \
1080
 
        uninstall-binPROGRAMS uninstall-man uninstall-man1
 
1130
        clean-libtool clean-noinstLIBRARIES clean-sbinPROGRAMS ctags \
 
1131
        distclean distclean-compile distclean-generic \
 
1132
        distclean-libtool distclean-tags distdir dvi dvi-am html \
 
1133
        html-am info info-am install install-am install-binPROGRAMS \
 
1134
        install-data install-data-am install-dvi install-dvi-am \
 
1135
        install-exec install-exec-am install-exec-hook install-html \
 
1136
        install-html-am install-info install-info-am install-man \
 
1137
        install-man1 install-pdf install-pdf-am install-ps \
 
1138
        install-ps-am install-sbinPROGRAMS install-strip installcheck \
 
1139
        installcheck-am installdirs maintainer-clean \
 
1140
        maintainer-clean-generic mostlyclean mostlyclean-compile \
 
1141
        mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
 
1142
        tags uninstall uninstall-am uninstall-binPROGRAMS \
 
1143
        uninstall-man uninstall-man1 uninstall-sbinPROGRAMS
1081
1144
 
1082
1145
 
1083
1146
vphack:
1100
1163
check-local: @MAKE_CHECK_Y2K@ $(CHECK_SAVECONFIG)
1101
1164
        test -z "@MAKE_CHECK_Y2K@" || ./@MAKE_CHECK_Y2K@
1102
1165
 
1103
 
ntp_keyword.out: keyword-gen
1104
 
        ./keyword-gen $(srcdir)/ntp_parser.h > $@
1105
 
        grep -v diff_ignore_line < $(srcdir)/ntp_keyword.h > cmp1
1106
 
        grep -v diff_ignore_line < $@ > cmp2
1107
 
        cmp cmp1 cmp2 > /dev/null || cp $@ $(srcdir)/ntp_keyword.h
1108
 
        rm cmp1 cmp2
1109
 
 
1110
 
ntp_keyword.dummy:
1111
 
        echo stamp > $@
1112
 
 
1113
 
$(srcdir)/ntp_keyword.h: $(NTP_KEYWORD_OUT)
 
1166
k-g-u-submake: keyword-gen
 
1167
        ./keyword-gen $(srcdir)/ntp_parser.h > k-g.out
 
1168
        @grep -v diff_ignore_line < k-g.out > cmp1
 
1169
        @grep -v diff_ignore_line < $(srcdir)/ntp_keyword.h > cmp2
 
1170
        @cmp cmp1 cmp2 > /dev/null || \
 
1171
                { mv -f k-g.out $(srcdir)/ntp_keyword.h && \
 
1172
                  echo 'Generated changed ntp_keyword.h.' ;}
 
1173
        @[ ! -f k-g.out ] || \
 
1174
                { rm k-g.out && echo 'ntp_keyword.h is up to date.' ;}
 
1175
        @rm cmp1 cmp2
 
1176
        @echo 'keyword-gen and ntp_keyword.h are up to date.' > $@
 
1177
 
 
1178
$(srcdir)/keyword-gen-utd: $(srcdir)/keyword-gen.c $(srcdir)/ntp_parser.h
 
1179
        $(MAKE) k-g-u-submake   # avoid explicit dependency
 
1180
        grep diff_ignore_line $(srcdir)/ntp_keyword.h > k-g-u
 
1181
        mv -f k-g-u $@
 
1182
 
 
1183
$(srcdir)/ntp_keyword.h: $(srcdir)/keyword-gen-utd
1114
1184
        @: do-nothing action to avoid default SCCS get
1115
 
        @: .h updated if needed by ntp_keyword.out rule
 
1185
        @: .h updated if needed by k-g-u-submake rule
1116
1186
 
1117
1187
$(srcdir)/ntpd-opts.h: $(srcdir)/ntpd-opts.c
1118
1188
        @: do-nothing action to avoid default SCCS get, .h built with .c
1123
1193
$(srcdir)/ntpd.1: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
1124
1194
        $(run_ag) -Tagman1.tpl -bntpd ntpd-opts.def
1125
1195
 
1126
 
$(srcdir)/ntpd-opts.texi $(srcdir)/ntpd-opts.menu: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
1127
 
        $(MAKE) ntpd    # aginfo.tpl runs the binary to extract --help usage text
 
1196
$(srcdir)/ntpd-opts.menu: $(srcdir)/ntpd-opts.texi
 
1197
        @: do-nothing action to avoid default SCCS get, .menu built with .texi
 
1198
 
 
1199
$(srcdir)/ntpd-opts.texi: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
1128
1200
        $(run_ag) -Taginfo.tpl -DLEVEL=section ntpd-opts.def
1129
1201
 
1130
1202
$(PROGRAMS): $(LDADD)
1135
1207
check-saveconfig: $(srcdir)/complete.conf compsave.conf
1136
1208
        cmp $(srcdir)/complete.conf compsave.conf && echo stamp > $@
1137
1209
 
 
1210
../libopts/libopts.la:
 
1211
        cd ../libopts && $(MAKE) libopts.la
 
1212
 
1138
1213
../libntp/libntp.a:
1139
1214
        cd ../libntp && $(MAKE) libntp.a
1140
1215
 
1141
1216
../libparse/libparse.a:
1142
 
        cd ../libparse && $(MAKE)
 
1217
        cd ../libparse && $(MAKE) libparse.a
1143
1218
 
1144
 
$(top_srcdir)/version :
 
1219
$(top_srcdir)/version:
1145
1220
        cd $(top_srcdir) && $(MAKE) version
1146
1221
 
1147
1222
version.o: $(ntpd_OBJECTS) ../libntp/libntp.a @LIBPARSE@ Makefile $(top_srcdir)/version
1149
1224
        $(COMPILE) -c version.c
1150
1225
 
1151
1226
install-exec-hook:
1152
 
        @case ${BINSUBDIR} in                                   \
1153
 
         bin) ODIR=${exec_prefix}/sbin ;;                       \
1154
 
         sbin) ODIR=${exec_prefix}/bin ;;                       \
1155
 
        esac;                                                   \
1156
 
        test -z "${bin_PROGRAMS}${bin_SCRIPTS}"                 \
 
1227
        @case ${BINSUBDIR} in                                           \
 
1228
         bin) ODIR=${sbindir} ;;                                        \
 
1229
         sbin) ODIR=${bindir} ;;                                        \
 
1230
        esac;                                                           \
 
1231
        test -z "${bin_PROGRAMS}${bin_SCRIPTS}"                         \
1157
1232
        || for i in ${bin_PROGRAMS} ${bin_SCRIPTS} " "; do              \
1158
1233
           test ! -f $$ODIR/$$i || echo "*** $$i is also in $$ODIR!";   \
1159
1234
        done