($(inst_includedir)/bits/stdio_lim.h): Use $(do-install).
[kopensolaris-gnu/glibc.git] / stdio-common / Makefile
index dba0335..49f9ddb 100644 (file)
@@ -21,7 +21,7 @@
 #
 subdir := stdio-common
 
-headers        := bits/stdio_lim.h printf.h
+headers        := printf.h
 
 routines       :=                                                            \
        ctermid cuserid                                                       \
@@ -36,8 +36,12 @@ routines     :=                                                            \
        remove rename                                                         \
        lockfile
 
+include ../Makeconfig
+
+install-others := $(inst_includedir)/bits/stdio_lim.h
+
 aux    := errlist siglist
-distribute := _itoa.h printf-parse.h
+distribute := _itoa.h printf-parse.h stdio_lim.h.in
 
 tests := tst-printf tstscanf test_rdwr test-popen tstgetln test-fseek \
         temptest tst-fileno test-fwrite tst-ungetc tst-ferror \
@@ -46,7 +50,6 @@ tests := tst-printf tstscanf test_rdwr test-popen tstgetln test-fseek \
         tfformat tiformat tstdiomisc tst-printfsz tst-wc-printf \
         scanf1 scanf2 scanf3 scanf4 scanf5 scanf7 scanf8 scanf9 scanf10
 
-
 include ../Rules
 
 CFLAGS-vfprintf.c = -Wno-uninitialized
@@ -57,6 +60,9 @@ CFLAGS-scanf4.c = -Wno-format
 CFLAGS-scanf7.c = -Wno-format
 CFLAGS-tst-printfsz.c = -Wno-format
 
+$(inst_includedir)/bits/stdio_lim.h: $(common-objpfx)bits/stdio_lim.h
+       $(do-install)
+
 ifeq ($(stdio),libio)
 ifneq (,$(filter %REENTRANT, $(defines)))
 CPPFLAGS += -D_IO_MTSAFE_IO