Skip to content

Commit

Permalink
Add a magic vpath to the unix makefile.
Browse files Browse the repository at this point in the history
This satisfies the Makefile's dependency on itself when buiding
in a parallel directory, like I use for the mingw builds, without
having to 'touch Makefile' as a work-around.
  • Loading branch information
rillian committed Aug 6, 2013
1 parent b89a179 commit 0f429a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ clean:
-rmdir ${WORKDIR}

# Make everything depend on changes in the Makefile
# This vpath directive needs to be before any include statements
vpath Makefile $(dir $(lastword $(MAKEFILE_LIST)))
${ALL_ASM} ${ALL_OBJS} ${ALL_DEPS} ${ALL_TARGETS} : Makefile

# Specify which targets are phony for GNU make
Expand Down

0 comments on commit 0f429a0

Please sign in to comment.