Lady’s Gitweb
/
Shushe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow separate find rules for includes
[Shushe]
/
GNUmakefile
diff --git
a/GNUmakefile
b/GNUmakefile
index d1a7f6ec0eff1a6f33d4f118244b3330ba9f133a..174f340315870e795c32985fa69e854df4c29233 100644
(file)
--- a/
GNUmakefile
+++ b/
GNUmakefile
@@
-134,11
+134,13
@@
MAGICDIR := $(patsubst ./%,%,$(THISDIR)/magic)
# Configuration of `find´.
#
# 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 := -
L
E
+# By default, `find´ will
not follow symlinks and will use extended
+#
regular expressions, ignoring hidden files and those which begin with
+#
a
period.
+FINDOPTS := -
P
E
FINDRULES := -flags -nohidden -and -not -name '.*'
FINDRULES := -flags -nohidden -and -not -name '.*'
+FINDINCLUDEOPTS := $(FINDOPTS)
+FINDINCLUDERULES := $(FINDRULES)
# The list of parsers for plaintext file types.
#
# The list of parsers for plaintext file types.
#
@@
-193,7
+195,7
@@
override silent := $(if $(VERBOSE),,@)
# (callable) Escape special characters for use in sed regular
# expressions.
# (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) ')')
# Collect all of the applicable includes from the includes directory.
sourceincludes := $(shell $(FIND) $(FINDOPTS) $(INCLUDEDIR) -type f '(' $(FINDRULES) ')')
@@
-302,7
+304,7
@@
help:
$(silent)$(PRINTF) '%b' '$(subst $(newline),\n,$(makefileinfo))'
# Compile all files, or error if any are recursive.
$(silent)$(PRINTF) '%b' '$(subst $(newline),\n,$(makefileinfo))'
# Compile all files, or error if any are recursive.
-all: $(call compiled,$(recursivefiles) $(compilablefiles) $(
assetfiles
)) ;
+all: $(call compiled,$(recursivefiles) $(compilablefiles) $(
filter $(sourcefiles),$(assetfiles)
)) ;
# Destroy buildfiles.
clean:
# Destroy buildfiles.
clean:
@@
-313,7
+315,7
@@
gone:
$(silent)$(RM) -rf $(BUILDDIR)/ $(call compiled,$(recursivefiles) $(compilablefiles))
# Install the compiled files into `DESTDIR´.
$(silent)$(RM) -rf $(BUILDDIR)/ $(call compiled,$(recursivefiles) $(compilablefiles))
# Install the compiled files into `DESTDIR´.
-install: $(call installed,$(recursivefiles) $(compilablefiles) $(
assetfiles
)) ;
+install: $(call installed,$(recursivefiles) $(compilablefiles) $(
filter $(sourcefiles),$(assetfiles)
)) ;
# List all source files and includes and their computed types.
list:
# List all source files and includes and their computed types.
list:
This page took
0.079366 seconds
and
4
git commands to generate.