diff options
author | Clark Williams <williams@redhat.com> | 2015-10-08 13:03:31 -0500 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2015-10-09 13:32:55 +0200 |
commit | d68bda3d43bf9d79c633e4223eda8c4dac51b4e6 (patch) | |
tree | 3860364dcfdca51b8b8c3ad9fb27367c79c536d3 | |
parent | cfb349961787e4b577829d62226401eeb4704424 (diff) | |
download | rt-tests-d68bda3d43bf9d79c633e4223eda8c4dac51b4e6.tar.gz |
Makefile: add target to create OBJDIR before use
Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -93,7 +93,10 @@ $(OBJDIR)/%.d: %.c @$(CC) -MM $(CFLAGS) $(CPPFLAGS) $< | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' > $@ || rm -f $@ .PHONY: all -all: $(TARGETS) hwlatdetect +all: $(OBJDIR) $(TARGETS) hwlatdetect + +$(OBJDIR): + mkdir $(OBJDIR) # Include dependency files, automatically generate them if needed. -include $(addprefix $(OBJDIR)/,$(sources:.c=.d)) |