AtomBuild / atom-build-make

GNU Make plugin for atom-build
MIT License
13 stars 19 forks source link

Strange problem with running Make #44

Open tiitlan opened 3 years ago

tiitlan commented 3 years ago

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 targetsrc/.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.