Skip binary files in GEN_INCLUDES

A binary file may be a temporary Vim .swp file when examining contrib
sources. The commit prevents build errors like

  .../repos/dde_linux/lib/mk/lxip_include.mk:29:
  target '.../x86_64/var/libcache/lxip_include/include/include/include/Binary'
  given more than once in the same rule
  .../repos/dde_linux/lib/mk/lxip_include.mk:29:
  target '.../x86_64/var/libcache/lxip_include/include/include/include/file'
  given more than once in the same rule
  ...
This commit is contained in:
Christian Helmuth
2017-02-11 16:44:04 +01:00
committed by Norman Feske
parent 61b6dccf13
commit eda0828ca0
6 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ ifeq ($(called_from_lib_mk),yes)
BSD_CONTRIB_DIR := $(call select_from_ports,dde_bsd)/src/lib/audio
BSD_EMUL_H := $(REP_DIR)/src/lib/audio/include/bsd_emul.h
GEN_INCLUDES := $(shell grep -rh "^\#include .*" $(BSD_CONTRIB_DIR) |\
GEN_INCLUDES := $(shell grep -rIh "^\#include .*" $(BSD_CONTRIB_DIR) |\
sed "s/^\#include [^<\"]*[<\"]\([^>\"]*\)[>\"].*/\1/" | sort | uniq)
GEN_INC := $(shell pwd)/include