Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildsys: restrict vpath to src directory #4679

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions GNUmakefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,15 @@ sysconfdir = @sysconfdir@
# out-of-tree builds without accidentally picking up e.g. *.o files from the
# wrong tree. Wee still have to be careful about build/config.h, though.
#
vpath %.h $(srcdir)
vpath %.c $(srcdir)
vpath %.cc $(srcdir)
vpath %.s $(srcdir)
vpath src/%.h $(srcdir)
vpath src/%.c $(srcdir)
vpath src/%.cc $(srcdir)
vpath src/%.s $(srcdir)

vpath src/hpc/%.h $(srcdir)
vpath src/hpc/%.c $(srcdir)
vpath src/hpc/%.cc $(srcdir)
vpath src/hpc/%.s $(srcdir)


#
Expand Down
1 change: 1 addition & 0 deletions dev/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ GAPInput
mkdir -p $SRCDIR/build/obj/src
echo "garbage content 1" > $SRCDIR/${bool_d}
echo "garbage content 2" > $SRCDIR/${bool_lo}
echo "garbage content 3" > $SRCDIR/build/gap_version.c

# test: `make clean` works and afterwards we can still `make`; in particular
# build/config.h must be regenerated before any actual compilation
Expand Down