]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 197] Only check-kayout if we have PATH_PERL
authorHarlan Stenn <stenn@ntp.org>
Tue, 7 Oct 2003 09:51:38 +0000 (05:51 -0400)
committerHarlan Stenn <stenn@ntp.org>
Tue, 7 Oct 2003 09:51:38 +0000 (05:51 -0400)
bk: 3f828caaTIpJ8iVLgKZUxURI4ezxYQ

ntpdc/Makefile.am

index ad4507cf68ed37b300461cc42421b2ccc28a96d0..53f39c940ddf61574c14ce52d45ecaa0553e972e 100644 (file)
@@ -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