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

Fix install option in Makefile.in #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TribuneX
Copy link
Member

No description provided.

@@ -46,7 +46,7 @@ define protoc-legacy
proto=$(1);\
src="$(PROTO_PATH)/$${proto}.proto";\
dst="$(PACKAGE_LEGACY_PATH)/$${proto}.proto";\
install -D $${src} $${dst};\
install -d $${src} $${dst};\
Copy link
Contributor

@abn abn May 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? This will create $${proto}.proto as a directory.

  -d, --directory     treat all arguments as directory names; create all
                        components of the specified directories
  -D                  create all leading components of DEST except the last,
                        or all components of --target-directory,
                        then copy SOURCE to DEST

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect the way to fix this would be to replace install usage with mkdir and cp; or handle os dependency.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. Seems to be an issue with install on macOS. Will look into how to solve this or document how to deal with it on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants