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

Strange problem with running Make #44

Open
tiitlan opened this issue Jun 18, 2021 · 0 comments
Open

Strange problem with running Make #44

tiitlan opened this issue Jun 18, 2021 · 0 comments

Comments

@tiitlan
Copy link

tiitlan commented Jun 18, 2021

I don't know really how to approach this. Make, when ran from command line, works flawlessly. But from inside Atom, I get:
make: *** No rule to make target src/.pas', needed by target/.ppu'. Stop.

I know it does find my Makefile because I can see the correct list of targets.

My Makefile contents:

name = $(notdir $(PWD))
unitfile = $(name).ppu
target = target/$(unitfile)
fpcflags = -FEtarget

.PHONY: build
build: $(target)

$(target): src/$(name).pas
	fpc $(fpcflags) $^

.PHONY: check
check: $(target)
	cd test && make check

My folder structure:

unittesting
    Makefile
    .gitignore
   src/
      unittesting.pas
   target/
   test/

I'm on MacOS 11.4.

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

No branches or pull requests

1 participant