Skip to content

use git clean for Makefile target clean, remove target superclean. - #118

Merged
ximeg merged 2 commits into
masterfrom
bugfix/104-make-trouble
May 12, 2020
Merged

ximeg merged 2 commits into
masterfrom
bugfix/104-make-trouble

Conversation

@cbeleites

Copy link
Copy Markdown
Owner

Fixes #104

@cbeleites
cbeleites requested a review from ximeg May 12, 2020 12:46
@ximeg

ximeg commented May 12, 2020 •

Copy link
Copy Markdown
Collaborator

@cbeleites , now git clean is invoked when I call make clean, but unfortunately I still get the error message reported in #111 during building (both with make and make bootstrap).

Error in .local(.Object, ...) : object '.chondro.wl' not found
Calls: document ... .make.chondro -> new -> initialize -> initialize -> .local
Execution halted
make: *** [Makefile:68: roxygenize] Error 1

I tested this with hyperSpec v0.99-20200115 installed on my Ubuntu laptop

Update

I found that I (as usual) forgot to invoke git lfs pull after cloning the repo. After making make bootstrap it works!

@ximeg ximeg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It seems to work, if you do not forget to make git lfs pull and build with make bootstrap. After successfull initial build, the subsequent builds can be made with make.

Comment thread Makefile

superclean:
@git clean -q -f -x -d
@git clean -q -f -x -d --exclude .Rproj.user/ --exclude hyperSpec.Rproj

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This solution implies that the end user has git on their system. This is almost always the case, but probably not always.

@ximeg
ximeg merged commit ca32409 into master May 12, 2020
@bryanhanson

Copy link
Copy Markdown
Collaborator

I was not invoking git lfs pull so thanks for that reminder. With your new changes issues #119 and #120 remain.

@ximeg
ximeg deleted the bugfix/104-make-trouble branch May 12, 2020 18:22
@cbeleites

Copy link
Copy Markdown
Owner Author

Since git lfs means that users must have git installed, does it make sense to call git lfs pull in the during make bootstrap?

@bryanhanson

bryanhanson commented May 13, 2020 via email

Copy link
Copy Markdown
Collaborator

@cbeleites

Copy link
Copy Markdown
Owner Author

No, I did not change the README in that respect. But it already says that git lfs must be installed.

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.

make clean breaks the build process

3 participants