.PHONY: dirs
MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
dirs:
+ @rm -f include/sys
ifneq ($(words $(MISSING_DIRS)),0)
@mkdir $(MISSING_DIRS)
else
@echo > /dev/null
endif
ifeq ($(HAVE_C9X),yes)
- -@rm include/inttypes.h
+ @rm -f include/inttypes.h > /dev/null 2>&1
else
- @cp $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h
+ @cp -p $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h
+endif
+ifeq ($(HAVE_STATVFS),yes)
+ @rm -f include/statvfs.h > /dev/null 2>&1
+else
+ @cp -p $(SRCDIR)/buildlib/statvfs.h.in include/statvfs.h
+ ln -sf . include/sys
endif