diff options
author | Will Chandler <wchandler@gitlab.com> | 2023-03-15 23:43:37 +0300 |
---|---|---|
committer | Will Chandler <wchandler@gitlab.com> | 2023-03-15 23:43:37 +0300 |
commit | c0e698ec8590fd68c1f4eeb7ec785381b7d92d72 (patch) | |
tree | c9b39d1b0cee70d038a64b21fb569801374b7e74 | |
parent | 5c42c9509ff0fab716f7b903b9dc4be77f1c15d9 (diff) |
Makefile: Treat `PROTO_DEST_DIR` as 'new' in diff
For the `no-proto-changes` Makefile target we diff the newly generated
protobufs in `${PROTO_DEST_DIR}` against the in-tree files located in
`proto/go`.
By placing `${PROTO_DEST_DIR}` as the first argument the diff will show
it as the 'old' value, which is unintuitive as it's much more likely to
have been changed. Swap the order so new files are treated as new.
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -530,7 +530,7 @@ no-changes: .PHONY: no-proto-changes no-proto-changes: PROTO_DEST_DIR := ${BUILD_DIR}/proto-changes no-proto-changes: proto | ${BUILD_DIR} - ${Q}${GIT} diff --no-index --exit-code -- "${PROTO_DEST_DIR}" "${SOURCE_DIR}/proto/go" + ${Q}${GIT} diff --no-index --exit-code -- "${SOURCE_DIR}/proto/go" "${PROTO_DEST_DIR}" .PHONY: dump-database-schema ## Dump the clean database schema of Praefect into a file. |