Formerly generic/Makefile.~14~
authorroland <roland>
Mon, 11 May 1992 18:44:25 +0000 (18:44 +0000)
committerroland <roland>
Mon, 11 May 1992 18:44:25 +0000 (18:44 +0000)
sysdeps/generic/Makefile

index 9d10302..d6bd262 100644 (file)
@@ -31,9 +31,8 @@ bsdmath_dirs := $(bsdmath_dirs) common common_source
 
 endif
 \f
-ifeq   ($(subdir),string)
-dont_distribute := $(dont_distribute) endian.h # Generated.
-endif
+ifeq "$(dir $(firstword $(wildcard $(+sysdep_dirs:%=%/endian.h))))" \
+     "$(sysdep_dir)/stub/"
 
 $(objpfx)endian.h: $(objpfx)det_endian
        $(dir $<)$(notdir $<) > $@-tmp
@@ -43,6 +42,8 @@ $(objpfx)det_endian: $(sysdep_dir)/generic/det_endian.c
        $(native-compile)
 
 before-compile := $(before-compile) $(objpfx)endian.h
+
+endif
 \f
 ifeq ($(subdir),stdio)