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