Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e7115a22
Commit
e7115a22
authored
Mar 17, 2008
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We need to rebuild objfiles.txt when one of the subdirectories' objfiles.txt
changed in case a new file got added.
parent
f09f055d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/backend/common.mk
src/backend/common.mk
+3
-3
No files found.
src/backend/common.mk
View file @
e7115a22
#
# Common make rules for backend
#
# $PostgreSQL: pgsql/src/backend/common.mk,v 1.
6 2008/02/29 10:34:51
petere Exp $
# $PostgreSQL: pgsql/src/backend/common.mk,v 1.
7 2008/03/17 18:24:56
petere Exp $
#
# When including this file, set OBJS to the object files created in
...
...
@@ -27,8 +27,8 @@ SUBSYS.o: $(SUBDIROBJS) $(OBJS)
$(LD)
$(LDREL)
$(LDOUT)
$@
$^
objfiles.txt
:
Makefile $(SUBDIROBJS) $(OBJS)
#
Only rebuild the list if it does not exist or the Makefile has
changed.
$(if
$(filter
$<
,$?),(
$(if
$(SUBDIROBJS),cat
$(SUBDIROBJS);
)echo
$(addprefix
$(subdir)/,$(OBJS))
)
>$@,touch
$@)
#
Don't rebuild the list if only the OBJS have
changed.
$(if
$(filter
-out
$(OBJS)
,$?),(
$(if
$(SUBDIROBJS),cat
$(SUBDIROBJS);
)echo
$(addprefix
$(subdir)/,$(OBJS))
)
>$@,touch
$@)
# make function to expand objfiles.txt contents
expand_subsys
=
$(
foreach
file,
$(1)
,
$(
if
$(
filter
%/objfiles.txt,
$(file)
)
,
$(
patsubst
../../src/backend/%,%,
$(
addprefix
$(top_builddir)
/,
$(
shell
cat
$(file)
)))
,
$(file)
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment