OSDN Git Service

- Improve prerequisites and avoid spurious reconfigurations.
[uclinux-h8/uClibc.git] / libpthread / linuxthreads.old / Makefile.in
index fe7503b..2608599 100644 (file)
@@ -108,14 +108,18 @@ $(top_builddir)lib/libpthread.a: $(libpthread-a-y)
        $(do_ar)
        $(do_t_strip)
 
-linuxthreads_headers:
-       $(Q)$(LN) -sf ../$(PTDIR)/sysdeps/pthread/pthread.h $(top_builddir)include/
-       $(Q)$(LN) -sf ../$(PTDIR)/semaphore.h $(top_builddir)include/
-       $(Q)$(INSTALL) -d $(top_builddir)include/bits
-       $(Q)$(LN) -sf ../../$(PTDIR)/sysdeps/pthread/bits/pthreadtypes.h $(top_builddir)include/bits/
+include/pthread.h:
+       $(do_ln) ../$(PTDIR)/sysdeps/pthread/$(@F) $(top_builddir)$@
+include/semaphore.h:
+       $(do_ln) ../$(PTDIR)/$(@F) $(top_builddir)$@
+include/bits/pthreadtypes.h: | include/bits
+       $(do_ln) ../../$(PTDIR)/sysdeps/pthread/bits/$(@F) $(top_builddir)$@
+linuxthreads_headers: include/pthread.h include/semaphore.h \
+                       include/bits/pthreadtypes.h
 
 linuxthreads_headers_clean:
-       $(RM) $(top_builddir)include/pthread.h $(top_builddir)include/semaphore.h \
+       $(RM) $(top_builddir)include/pthread.h \
+               $(top_builddir)include/semaphore.h \
                $(top_builddir)include/bits/pthreadtypes.h
 
 libpthread_clean: