mbcrawfo / GenericMakefile

A generic makefile for use with small/medium C and C++ projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'make all' broken

rhd opened this issue · comments

commented

Hi, the only reason I noticed this is because qtcreator defaults to make all.

$ make all
Compiling: main.cpp -> /main.o
/bin/bash: /.main.o_time: Permission denied
Makefile:216: recipe for target '/main.o' failed
make: *** [/main.o] Error 1

vs

$ make
Creating directories
Beginning release build
Compiling: main.cpp -> build/release/main.o
     Compile time: 00:00:01
Linking: bin/release/claratest
     Link time: 00:00:00
Making symlink: claratest -> bin/release/claratest
Total build time: 00:00:01

make all isn't meant to be called directly in this makefile, because it relies on make release or make debug to set up the build first. You'd have to do some pretty substantial restructuring to allow it to work.