summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/Makefile.am
blob: 96918fc01dd05ffd396b16965e4fbffd78361639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#AUTOMAKE_OPTIONS = util/ansi2knr foreign dist-tarZ no-dependencies
AUTOMAKE_OPTIONS = util/ansi2knr foreign 1.5

SUBDIRS = \
	scripts \
	include \
	ElectricFence	\
	@ARLIB_DIR@ \
	libntp	\
	libparse	\
	ntpd	\
	ntpdate	\
	ntpdc	\
	ntpq	\
	parseutil	\
	adjtimed	\
	clockstuff	\
	kernel	\
	@MAKE_SNTP@	\
	util

DIST_SUBDIRS= \
	scripts \
	include \
	ElectricFence	\
	arlib \
	libntp	\
	libparse	\
	ntpd	\
	ntpdate	\
	ntpdc	\
	ntpq	\
	parseutil	\
	adjtimed	\
	clockstuff	\
	kernel	\
	sntp	\
	util
DISTCHECK_CONFIGURE_FLAGS=	--with-arlib --with-sntp

EXTRA_DIST = \
	COPYRIGHT \
	ChangeLog \
	ChangeLog-4.1.0 \
	NEWS \
	NOTES.y2kfixes \
	README.bk \
	README.hackers \
	README.patches \
	README.refclocks \
	README.versions \
	TODO \
	WHERE-TO-START \
	build \
	config.guess \
	config.h.in \
	config.sub \
	dot.emacs \
	excludes \
	flock-build \
	install-sh \
	readme.y2kfixes \
	results.y2kfixes \
	conf \
	html \
	libisc \
	ports \
	version

DISTCLEANFILES = .warning

#ETAGS_ARGS = $(srcdir)/Makefile.am $(srcdir)/configure.in
ETAGS_ARGS = Makefile.am configure.in

# HMS: make ports be the last directory...
# DIST_HOOK_DIRS = conf html scripts ports

# HMS: Keep .warning first, as that way it gets printed first.
BUILT_SOURCES = .warning $(srcdir)/COPYRIGHT $(srcdir)/version

$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
	( 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

# HMS: The next bit is still suboptimal.  If bk is present but this NTP
# repo is not a bk repo, we'll get an error message from the prs command.
# Unfortunately, I haven't found the necessary magic to redirect this error
# output to /dev/null under ancient/unique shells like the one Ultrix uses.
# We'll also get an error if srcdir or version is unwritable.
$(srcdir)/version: FRC.version
	-(bk version) >/dev/null 2>&1 && \
	    cd $(srcdir) && \
            x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
	    y=`cat version 2>/dev/null` || true && \
	    case "$$x" in ''|$$y) ;; *) echo $$x > version ;; esac

dist-hook:
	@find $(distdir) -type d -name CVS -print | xargs rm -rf
	@find $(distdir) -type d -name SCCS -print | xargs rm -rf
	@chmod u+w $(distdir)/ports/winnt
	@for i in `find $(distdir)/ports/winnt -type f -name '*.ds*' -print`; \
	   do chmod u+w $$i ; unix2dos $$i $$i; done

.warning:
	@echo "Compiling with GCC now generates lots of new warnings."
	@echo " "
	@echo "Don't be concerned. They're just warnings."
	@echo " "
	@echo "Don't send bug reports about the warnings, either."
	@echo " "
	@echo "Feel free to send patches that fix these warnings, though."
	@echo " "
	@sleep 1
	@touch .warning

# HMS: The following seems to be a work-in-progress...

CVO=`$(srcdir)/config.guess`

.buildcvo:
	echo "$(CVO)" > .buildcvo

.checkcvo: .buildcvo FRC.checkcvo
	@if [ "`cat .buildcvo`" != "$(CVO)" ];then	\
		echo "This directory was configured for `cat .buildcvo`"; \
		echo "but this machine is a $(CVO)";	\
		exit 1;	\
	fi

BHOST=`(hostname || uname -n)`

.buildhost:
	echo "$(BHOST)" > .buildhost

.checkhost: .buildhost FRC.checkhost
	@if [ "`cat .buildhost`" != "$(BHOST)" ];then	\
		echo "Built on `cat .buildhost` but this is $(BHOST)"; \
		echo " "; \
	fi

FRC.distwarn FRC.checkcvo FRC.checkhost FRC.version:

# HMS: what was I trying to do with this?
#dot.emacs: FRC.distwarn
OpenPOWER on IntegriCloud