]> Lady’s Gitweb - Shushe/blobdiff - GNUmakefile
Do not follow symbolic links with `find`
[Shushe] / GNUmakefile
index ea676dc3c4bfbd76257c069f824a2ffbcddf1324..a6741782f2a6b3114bd6f705b382f352703728f3 100644 (file)
@@ -134,10 +134,10 @@ MAGICDIR := $(patsubst ./%,%,$(THISDIR)/magic)
 
 # Configuration of `find´.
 #
-# By default, `find´ will follow symlinks and use extended regular
-# expressions, ignoring hidden files and those which begin with a
-# period.
-FINDOPTS := -LE
+# By default, `find´ will not follow symlinks and will use extended
+# regular expressions, ignoring hidden files and those which begin with
+# period.
+FINDOPTS := -PE
 FINDRULES := -flags -nohidden -and -not -name '.*'
 
 # The list of parsers for plaintext file types.
@@ -193,7 +193,7 @@ override silent := $(if $(VERBOSE),,@)
 
 # (callable) Escape special characters for use in sed regular
 # expressions.
-override sedesc = $(subst $$,\$$,$(subst *,\*,$(subst .,\.,$(subst [,\[,$(subst ^,\^,$(subst \,\\,$1))))))
+override sedesc = $(subst /,[/],$(subst $$,\$$,$(subst *,\*,$(subst .,\.,$(subst [,\[,$(subst ^,\^,$(subst \,\\,$1)))))))
 
 # Collect all of the applicable includes from the includes directory.
 sourceincludes := $(shell $(FIND) $(FINDOPTS) $(INCLUDEDIR) -type f '(' $(FINDRULES) ')')
This page took 0.023673 seconds and 4 git commands to generate.