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

Fixed browser-api/common/Makefile (avoid the dependency error when directories creating) #103

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

Conversation

jin3110
Copy link

@jin3110 jin3110 commented Jan 3, 2015

Fixed browser-api/common/Makefile (avoid the dependency error when directories creating)

Needed to remove the "/"(slash) directories name at the end.

(NG) .../browser-ext/login/build/chrome/release/
(OK) .../browser-ext/login/build/chrome/release

  • BEFORE
$ cd browser-ext/login
$ gmake -n
kzjs_srouces = ../api/build/node/lib/node_modules/keyczarjs/*.js
forge_srouces = ../api/build/node/lib/node_modules/keyczarjs/node_modules/node-forge/js/*.js
gmake: *** No rule to make target `/home/vagrant/mitro/browser-ext/login/build/chrome/release/', needed by `/home/vagrant/mitro/browser-ext/login/build/chrome/release/utils.js'.  Stop.

$ gmake --version
GNU Make 3.82
  • AFTER
$ gmake -n
kzjs_srouces = ../api/build/node/lib/node_modules/keyczarjs/*.js
forge_srouces = ../api/build/node/lib/node_modules/keyczarjs/node_modules/node-forge/js/*.js
mkdir -p /home/vagrant/mitro/browser-ext/login/build/chrome/release
echo /home/vagrant/mitro/browser-ext/login/build/chrome/release/utils.js
...

…g dependency error)

Needed to remove the "/"(slash) directory name at the end.
~~~~
$ gmake -n
kzjs_srouces = ../api/build/node/lib/node_modules/keyczarjs/*.js
forge_srouces = ../api/build/node/lib/node_modules/keyczarjs/node_modules/node-forge/js/*.js
gmake: *** No rule to make target `/home/vagrant/mitro/browser-ext/login/build/chrome/release/', needed by `/home/vagrant/mitro/browser-ext/login/build/chrome/release/utils.js'.  Stop.

$ gmake --version
GNU Make 3.82
~~~~
@@ -296,30 +296,30 @@ $(1):
endef

define COPY_RULE
$(2): $(1) | $(dir $(2))
$(2): $(1) | $(patsubst %/,%,$(dir $(2)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

is patsubst greedy? this won't convert foo/bar/whatever into foobarwhatever will it?

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