Lady’s Gitweb
/
Shushe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix <html:head> copying
[Shushe]
/
GNUmakefile
diff --git
a/GNUmakefile
b/GNUmakefile
index e8624778763b08e1aaefa0ea337ce16a3afaabaf..9ae7a921aa2c3522cbe2ecce93b1ea4881d4fa49 100644
(file)
--- a/
GNUmakefile
+++ b/
GNUmakefile
@@
-193,7
+193,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
+302,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
+313,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:
@@
-378,8
+378,7
@@
endif
$(BUILDDIR)/magic.mgc: $(wildcard $(MAGICDIR)/*)
@$(ECHO) "Compiling new magic…"
$(silent)$(call ensuredirectory,$(dir $@))
$(BUILDDIR)/magic.mgc: $(wildcard $(MAGICDIR)/*)
@$(ECHO) "Compiling new magic…"
$(silent)$(call ensuredirectory,$(dir $@))
- $(silent)$(FILE) -C -m $(call quote,$(MAGICDIR))
- $(silent)$(MV) $(call quote,$(MAGICDIR).mgc) $(call quote,$(BUILDDIR)/magic.mgc)
+ $(silent)cd $(call quote,$(BUILDDIR)) && $(FILE) -C -m $(call quote,$(realpath $(MAGICDIR)))
# Generate the main parser.
$(BUILDDIR)/parser.catalog: $(PARSERS)
# Generate the main parser.
$(BUILDDIR)/parser.catalog: $(PARSERS)
This page took
0.033242 seconds
and
4
git commands to generate.