diff options
Diffstat (limited to 'cpukit/wrapup')
-rw-r--r-- | cpukit/wrapup/Makefile.am | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/wrapup/Makefile.am b/cpukit/wrapup/Makefile.am index d37b5c2687..7869898c31 100644 --- a/cpukit/wrapup/Makefile.am +++ b/cpukit/wrapup/Makefile.am @@ -66,9 +66,11 @@ LIBS += ../librpc/src/rpc/$(ARCH)/librpc.a LIBS += ../librpc/src/xdr/$(ARCH)/libxdr.a endif +$(LIBS): $(ARCH)/$(dirstamp) + $(LIB): ${LIBS} rm -f $@ - rm -rf $(ARCH)/* + rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel for f in $(LIBS); do \ case $$f in \ *.$(OBJEXT) | *.rel) \ @@ -94,12 +96,12 @@ $(LIB): ${LIBS} done test -d $(project_libdir) || $(mkinstalldirs) $(project_libdir) $(AR) rc $@ $(ARCH)/* - rm -f $(ARCH)/*.$(OBJEXT) + rm -f $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel $(RANLIB) $@ TMPINSTALL_FILES += $(project_libdir)/librtemscpu$(LIB_VARIANT).a -all-am: $(ARCH) $(LIB) $(TMPINSTALL_FILES) +all-am: $(LIB) $(TMPINSTALL_FILES) install-data-hook: $(LIB) @$(mkinstalldirs) $(DESTDIR)$(libdir) |