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

Can't start debugger if no targets are defined #123

Open
deliciouslytyped opened this issue Aug 2, 2021 · 2 comments
Open

Can't start debugger if no targets are defined #123

deliciouslytyped opened this issue Aug 2, 2021 · 2 comments

Comments

@deliciouslytyped
Copy link

I want to debug the following Makefile (the actual problem is irrelevant; the make-dirs call expands to nothing):

define _make-dir
$1/.dum: $(not-dir $1)/.dum
        mkdir $(dir $@)
        touch $(dir $@)/.dum
endef

# we dont try to create/depend on /.dum
define make-dir
$(if $(not-dir $1),$(call _make-dir,$1),)
endef

$(call make-dir,test/)

Running remake results in the following:

$ remake -X
Reading makefiles...
Updating makefiles...
remake: *** No targets.  Stop.

As a workaround, a dummy target can be added, to get into the REPL, but it would be nice if this wasn't a problem when wanting to debug macro libraries or such.

@rocky
Copy link
Owner

rocky commented Aug 2, 2021

The example given isn't very compelling. How likely is it that someone will write a Makefile with no usable target? And if this is totally artificial or for testing, then creating a couple additional lines doesn't seem that hard.

@deliciouslytyped
Copy link
Author

It's not critical, just inconvenient.

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

No branches or pull requests

2 participants