Skip to content

Commit e036dd6

Browse files
committed
erts: Fix depend target in pcre.mk
Rename it to not be invoked during OTP build.
1 parent 62be1ce commit e036dd6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

erts/emulator/pcre/README.pcre_update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ pcre.mk after all testing is done.
305305

306306
Regenerate the make dependencies in `depend.mk` with:
307307

308-
~/erts/emulator/pcre/> make -f pcre.mk depend
308+
~/erts/emulator/pcre/> make -f pcre.mk static_depend
309309

310310
Now your pcre.mk is fairly up to date and it's time to start patching in the changes...
311311

erts/emulator/pcre/pcre.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ $(PCRE_YIELD_COV): $(PCRE_DIR)/pcre2_match.c
8686
done > $@; \
8787
echo "#define ERLANG_YIELD_POINT_CNT $$INDEX" >> $@
8888

89-
depend:
89+
90+
# Target static_depend is currently only ment to be run manually.
91+
# It works on Ubuntu Linux but not en FreeBSD for example.
92+
# > make -f pcre.mk static_depend
93+
# > git add depend.mk
94+
static_depend:
9095
gcc -MM -MG -c -DERLANG_INTEGRATION -DDEBUG *.c \
9196
| sed -E 's/\S+\.o:/$$(PCRE_OBJDIR)\/&/' \
9297
| sed -E 's/\S+\.[ch]\b/$$(PCRE_DIR)\/&/g' > depend.mk

0 commit comments

Comments
 (0)