Annotation of embedaddon/ntp/Makefile.am, revision 1.1.1.1

1.1       misho       1: ## LIBOPTS_CHECK_NOBUILD works with Automake 1.10 now
                      2: AUTOMAKE_OPTIONS = foreign 1.10
                      3: ACLOCAL_AMFLAGS = -I m4 -I sntp/libopts/m4
                      4: 
                      5: NULL =
                      6: 
                      7: SUBDIRS =
                      8: SUBDIRS +=             \
                      9:        scripts         \
                     10:        include         \
                     11:        ElectricFence   \
                     12:        libntp          \
                     13:        sntp            \
                     14:        libparse        \
                     15:        ntpd            \
                     16:        ntpdate         \
                     17:        ntpdc           \
                     18:        ntpq            \
                     19:        ntpsnmpd        \
                     20:        parseutil       \
                     21:        adjtimed        \
                     22:        clockstuff      \
                     23:        kernel          \
                     24:        util            \
                     25:        $(NULL)
                     26: 
                     27: DIST_SUBDIRS =         \
                     28:        scripts         \
                     29:        include         \
                     30:        ElectricFence   \
                     31:        libntp          \
                     32:        libparse        \
                     33:        sntp            \
                     34:        ntpd            \
                     35:        ntpdate         \
                     36:        ntpdc           \
                     37:        ntpq            \
                     38:        ntpsnmpd        \
                     39:        parseutil       \
                     40:        adjtimed        \
                     41:        clockstuff      \
                     42:        kernel          \
                     43:        util            \
                     44:        $(NULL)
                     45: 
                     46: DISTCHECK_CONFIGURE_FLAGS = -C
                     47: 
                     48: EXTRA_DIST =                   \
                     49:        $(srcdir)/COPYRIGHT     \
                     50:        ChangeLog               \
                     51:        CommitLog               \
                     52:        CommitLog-4.1.0         \
                     53:        NEWS                    \
                     54:        NOTES.y2kfixes          \
                     55:        README.bk               \
                     56:        README.hackers          \
                     57:        README.patches          \
                     58:        README.refclocks        \
                     59:        README.versions         \
                     60:        TODO                    \
                     61:        WHERE-TO-START          \
                     62:        bootstrap               \
                     63:        build                   \
                     64:        config.guess            \
                     65:        config.h.in             \
                     66:        config.sub              \
                     67:        dot.emacs               \
                     68:        excludes                \
                     69:        flock-build             \
                     70:        install-sh              \
                     71:        packageinfo.sh          \
                     72:        readme.y2kfixes         \
                     73:        results.y2kfixes        \
                     74:        \
                     75:        conf                    \
                     76:        html                    \
                     77:        lib/isc                 \
                     78:        ports                   \
                     79:        \
                     80:        bincheck.mf             \
                     81:        depsver.mf              \
                     82:        deps-ver                \
                     83:        $(srcdir)/version       \
                     84:        version.m4              \
                     85:        \
                     86:        $(NULL)
                     87: 
                     88: CLEANFILES =
                     89: DISTCLEANFILES = .gcc-warning
                     90: 
                     91: ETAGS_ARGS = Makefile.am configure.ac
                     92: 
                     93: # HMS: Keep .gcc-warning first, as that way it gets printed first.
                     94: BUILT_SOURCES =                                \
                     95:        .gcc-warning                    \
                     96:        libtool                         \
                     97:        $(srcdir)/COPYRIGHT             \
                     98:        $(srcdir)/version               \
                     99:        $(srcdir)/version.m4            \
                    100:        $(srcdir)/include/version.def   \
                    101:        $(srcdir)/include/version.texi  \
                    102:        $(srcdir)/.checkChangeLog       \
                    103:        $(NULL)
                    104: 
                    105: $(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
                    106:        { echo "This file is automatically generated from html/copyright.html" ; \
                    107:          lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \
                    108:        && mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT
                    109: 
                    110: COPYRIGHT-please: $(srcdir)/COPYRIGHT
                    111:        @: do-nothing action to prevent default \
                    112:           This target is needed by sntp/Makefile.am on decrepit \
                    113:           FreeBSD 6.x make which fails with "make COPYRIGHT" \
                    114:           configured in $(srcdir) but "make ./COPYRIGHT" succeeds. \
                    115:           Rather than determine our $(srcdir) from sntp/Makefile.am \
                    116:           COPYRIGHT-please serves as a fixed target.
                    117: 
                    118: # HMS: The next bit is still suboptimal.  If bk is present but this NTP
                    119: # repo is not a bk repo, we'll get an error message from the prs command.
                    120: # Unfortunately, I haven't found the necessary magic to redirect this error
                    121: # output to /dev/null under ancient/unique shells like the one Ultrix uses.
                    122: # We'll also get an error if srcdir or version is unwritable.
                    123: $(srcdir)/version: FRC.version
                    124:        -(bk version) >/dev/null 2>&1 && \
                    125:            cd $(srcdir) && \
                    126:            x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
                    127:            y=`cat version 2>/dev/null` || true && \
                    128:            case "$$x" in ''|$$y) ;; *) echo $$x > version ;; esac
                    129: 
                    130: $(srcdir)/version.m4: $(srcdir)/packageinfo.sh
                    131:        TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
                    132:        ./scripts/genver version.m4
                    133: 
                    134: $(srcdir)/include/version.def: $(srcdir)/packageinfo.sh
                    135:        TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
                    136:        ./scripts/genver include/version.def
                    137: 
                    138: $(srcdir)/include/version.texi: $(srcdir)/packageinfo.sh
                    139:        TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
                    140:        ./scripts/genver include/version.texi
                    141: 
                    142: $(srcdir)/.checkChangeLog: $(srcdir)/ChangeLog $(srcdir)/scripts/checkChangeLog
                    143:        cd $(srcdir) && \
                    144:        ./scripts/checkChangeLog
                    145: 
                    146: libtool: $(LIBTOOL_DEPS)
                    147:        ./config.status --recheck
                    148: 
                    149: dist-hook:
                    150:        @find $(distdir) -type d -name SCCS -print | xargs rm -rf
                    151: 
                    152: .gcc-warning:
                    153:        @echo "Compiling with GCC now generates lots of new warnings."
                    154:        @echo " "
                    155:        @echo "Don't be concerned. They're just warnings."
                    156:        @echo " "
                    157:        @echo "Don't send bug reports about the warnings, either."
                    158:        @echo " "
                    159:        @echo "Feel free to send patches that fix these warnings, though."
                    160:        @echo " "
                    161:        @sleep 1
                    162:        @touch $@
                    163: 
                    164: CommitLog: FRC.CommitLog
                    165:        cd $(srcdir)                                    \
                    166:        && $(PATH_TEST) -e CommitLog                    \
                    167:                -a SCCS/s.ChangeSet -ot CommitLog       \
                    168:        || scripts/genCommitLog
                    169: 
                    170: # HMS: The following seems to be a work-in-progress...
                    171: 
                    172: CVO=`$(srcdir)/config.guess`
                    173: 
                    174: .buildcvo:
                    175:        echo "$(CVO)" > .buildcvo
                    176: 
                    177: .checkcvo: .buildcvo FRC.checkcvo
                    178:        @if [ "`cat .buildcvo`" != "$(CVO)" ];then      \
                    179:                echo "This directory was configured for `cat .buildcvo`"; \
                    180:                echo "but this machine is a $(CVO)";    \
                    181:                exit 1; \
                    182:        fi
                    183: 
                    184: BHOST=`(hostname || uname -n)`
                    185: 
                    186: .buildhost:
                    187:        echo "$(BHOST)" > .buildhost
                    188: 
                    189: .checkhost: .buildhost FRC.checkhost
                    190:        @if [ "`cat .buildhost`" != "$(BHOST)" ];then   \
                    191:                echo "Built on `cat .buildhost` but this is $(BHOST)"; \
                    192:                echo " "; \
                    193:        fi
                    194: 
                    195: FRC.CommitLog FRC.distwarn FRC.checkcvo FRC.checkhost FRC.version:
                    196:        @: do-nothing action prevents any default
                    197: 
                    198: # HMS: what was I trying to do with this?
                    199: #dot.emacs: FRC.distwarn

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>