163 reputation
7
bio website kaypop.net
location Australia
age 20
visits member for 1 year, 10 months
seen Sep 29 '13 at 17:18

Just some dude, living his life.


Aug
26
awarded  Popular Question
Mar
8
accepted Bash Command (History) Number In PS1
Mar
7
awarded  Self-Learner
Mar
4
awarded  Teacher
Mar
4
answered Bash Command (History) Number In PS1
Mar
3
asked Bash Command (History) Number In PS1
Feb
23
awarded  Scholar
Feb
23
accepted Makefile $wildcard only matches top directory
Feb
23
comment Makefile $wildcard only matches top directory
It seems that having a file main.h results in object files being created in the root directory, no matter what directory they come from. E.g. main.o and parse.o are inside the same folder instead of parse.o being inside the parse folder. Conversely renaming main.h to say... includes.h results in ISO C90 warnings, even though I clearly state -std=c99. The makefile is UNCHAINED except for your answer. As for clean near this line from make -d : Successfully remade target file main'.` there is no mention of clean, neither does scrolling through the terminal. This is annoying.
Feb
23
awarded  Supporter
Feb
23
comment Makefile $wildcard only matches top directory
@ckchan oh wow, that's was silly of me :S - It seems my clean function isn't being implemented now, as I was hoping to replace $(OBJ) with my ~$(foreach` logic, any ideas why clean: isn't running?
Feb
22
awarded  Student
Feb
22
asked Makefile $wildcard only matches top directory
Feb
22
awarded  Autobiographer