]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ntp/Makefile.am
This commit was generated by cvs2svn to compensate for changes in r170263,
[FreeBSD/FreeBSD.git] / contrib / ntp / Makefile.am
1 #AUTOMAKE_OPTIONS = util/ansi2knr foreign dist-tarZ no-dependencies
2 AUTOMAKE_OPTIONS = util/ansi2knr foreign 1.5
3
4 SUBDIRS = \
5         scripts \
6         include \
7         ElectricFence   \
8         @ARLIB_DIR@ \
9         libntp  \
10         libparse        \
11         ntpd    \
12         ntpdate \
13         ntpdc   \
14         ntpq    \
15         parseutil       \
16         adjtimed        \
17         clockstuff      \
18         kernel  \
19         @MAKE_SNTP@     \
20         util
21
22 DIST_SUBDIRS= \
23         scripts \
24         include \
25         ElectricFence   \
26         arlib \
27         libntp  \
28         libparse        \
29         ntpd    \
30         ntpdate \
31         ntpdc   \
32         ntpq    \
33         parseutil       \
34         adjtimed        \
35         clockstuff      \
36         kernel  \
37         sntp    \
38         util
39 DISTCHECK_CONFIGURE_FLAGS=      --with-arlib --with-sntp
40
41 EXTRA_DIST = \
42         COPYRIGHT \
43         ChangeLog \
44         ChangeLog-4.1.0 \
45         NEWS \
46         NOTES.y2kfixes \
47         README.bk \
48         README.hackers \
49         README.patches \
50         README.refclocks \
51         README.versions \
52         TODO \
53         WHERE-TO-START \
54         build \
55         config.guess \
56         config.h.in \
57         config.sub \
58         dot.emacs \
59         excludes \
60         flock-build \
61         install-sh \
62         readme.y2kfixes \
63         results.y2kfixes \
64         conf \
65         html \
66         libisc \
67         ports \
68         version
69
70 DISTCLEANFILES = .warning
71
72 #ETAGS_ARGS = $(srcdir)/Makefile.am $(srcdir)/configure.in
73 ETAGS_ARGS = Makefile.am configure.in
74
75 # HMS: make ports be the last directory...
76 # DIST_HOOK_DIRS = conf html scripts ports
77
78 # HMS: Keep .warning first, as that way it gets printed first.
79 BUILT_SOURCES = .warning $(srcdir)/COPYRIGHT $(srcdir)/version
80
81 $(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
82         ( echo "This file is automatically generated from html/copyright.html" ; lynx -dump $(srcdir)/html/copyright.html ) > $(srcdir)/COPYRIGHT.new && mv $(srcdir)/COPYRIGHT.new $(srcdir)/COPYRIGHT
83
84 # HMS: The next bit is still suboptimal.  If bk is present but this NTP
85 # repo is not a bk repo, we'll get an error message from the prs command.
86 # Unfortunately, I haven't found the necessary magic to redirect this error
87 # output to /dev/null under ancient/unique shells like the one Ultrix uses.
88 # We'll also get an error if srcdir or version is unwritable.
89 $(srcdir)/version: FRC.version
90         -(bk version) >/dev/null 2>&1 && \
91             cd $(srcdir) && \
92             x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
93             y=`cat version 2>/dev/null` || true && \
94             case "$$x" in ''|$$y) ;; *) echo $$x > version ;; esac
95
96 dist-hook:
97         @find $(distdir) -type d -name CVS -print | xargs rm -rf
98         @find $(distdir) -type d -name SCCS -print | xargs rm -rf
99         @chmod u+w $(distdir)/ports/winnt
100         @for i in `find $(distdir)/ports/winnt -type f -name '*.ds*' -print`; \
101            do chmod u+w $$i ; unix2dos $$i $$i; done
102
103 .warning:
104         @echo "Compiling with GCC now generates lots of new warnings."
105         @echo " "
106         @echo "Don't be concerned. They're just warnings."
107         @echo " "
108         @echo "Don't send bug reports about the warnings, either."
109         @echo " "
110         @echo "Feel free to send patches that fix these warnings, though."
111         @echo " "
112         @sleep 1
113         @touch .warning
114
115 # HMS: The following seems to be a work-in-progress...
116
117 CVO=`$(srcdir)/config.guess`
118
119 .buildcvo:
120         echo "$(CVO)" > .buildcvo
121
122 .checkcvo: .buildcvo FRC.checkcvo
123         @if [ "`cat .buildcvo`" != "$(CVO)" ];then      \
124                 echo "This directory was configured for `cat .buildcvo`"; \
125                 echo "but this machine is a $(CVO)";    \
126                 exit 1; \
127         fi
128
129 BHOST=`(hostname || uname -n)`
130
131 .buildhost:
132         echo "$(BHOST)" > .buildhost
133
134 .checkhost: .buildhost FRC.checkhost
135         @if [ "`cat .buildhost`" != "$(BHOST)" ];then   \
136                 echo "Built on `cat .buildhost` but this is $(BHOST)"; \
137                 echo " "; \
138         fi
139
140 FRC.distwarn FRC.checkcvo FRC.checkhost FRC.version:
141
142 # HMS: what was I trying to do with this?
143 #dot.emacs: FRC.distwarn