From: Harlan Stenn Date: Tue, 7 Oct 2003 09:51:38 +0000 (-0400) Subject: [Bug 197] Only check-kayout if we have PATH_PERL X-Git-Tag: NTP_4_2_0~6^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a363babcbdb85e48cbd85126b0037b820ea8928;p=thirdparty%2Fntp.git [Bug 197] Only check-kayout if we have PATH_PERL bk: 3f828caaTIpJ8iVLgKZUxURI4ezxYQ --- diff --git a/ntpdc/Makefile.am b/ntpdc/Makefile.am index ad4507cf68..53f39c940d 100644 --- a/ntpdc/Makefile.am +++ b/ntpdc/Makefile.am @@ -1,21 +1,27 @@ #AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies AUTOMAKE_OPTIONS = ../util/ansi2knr -bin_PROGRAMS = ntpdc -noinst_PROGRAMS = ntpdc-layout -noinst_DATA= check-layout -INCLUDES = -I$(top_srcdir)/include +bin_PROGRAMS= ntpdc +EXTRA_PROGRAMS= ntpdc-layout +EXTRA_DATA= check-layout +BUILT_SOURCES= maybe-layout +INCLUDES= -I$(top_srcdir)/include # LDADD might need RESLIB and ADJLIB -ntpdc_LDADD = version.o ../libntp/libntp.a @READLINE_LIBS@ +ntpdc_LDADD= version.o ../libntp/libntp.a @READLINE_LIBS@ # ntpdc-layout doesn't need any additional libraries at all ntpdc_layout_LDADD= -DISTCLEANFILES = .version version.c +DISTCLEANFILES= .version version.c CLEANFILES= check-layout layout.here nl.c -noinst_HEADERS = ntpdc.h -EXTRA_DIST = nl_in.c nl.pl layout.std -ETAGS_ARGS = Makefile.am +noinst_HEADERS= ntpdc.h +EXTRA_DIST= nl_in.c nl.pl layout.std +ETAGS_ARGS= Makefile.am ntpdc_SOURCES = ntpdc.c ntpdc_ops.c +maybe-layout: + @case "${PATH_PERL}" in \ + /*) ${MAKE} check-layout ;; \ + esac + ntpdc-layout.o: nl.c layout.here: ntpdc-layout