Closed domsekotill closed 3 years ago
What I dislike about this is that you keep seeing the mkdir
line being repeated for every object.
I think the directory creation should also work like this:
+$(CURDIR)/doc $(CURDIR)/src:
+ mkdir -p $@
+
-$(OBJECTS): Makefile config.h
+$(OBJECTS): Makefile config.h $(CURDIR)/src
+$(MAN1PAGES): $(CURDIR)/doc
This should make sure the directories are created as well (for some reason I could not get it to work without the $(CURDIR)/
prefix though...)
Would that work for you?
Yes, I could not get it to work which was why I implememented it that way; the $(CURDIR)
trick looks interesting, I'll give it a test. Are you OK with me rebasing/squashing?
yeah you can just force-push to update the PR
Thanks!
Adds support for building in a directory separate from the source code tree:
Also necessarily includes a commit fixing the issue requiring the following hack in Makefile: