version 1.33, 2017/09/13 15:25:08
|
version 1.34, 2022/09/14 15:59:13
|
Line 26 MAKETARGET = $(MAKE) --no-print-director |
|
Line 26 MAKETARGET = $(MAKE) --no-print-director |
|
| |
.PHONY: $(PROJOBJDIR) $(OBJDIR) | .PHONY: $(PROJOBJDIR) $(OBJDIR) |
| |
|
$(PROJOBJDIR):: |
|
+@[ -d $@ ] || mkdir -p $@ |
|
|
# Create the project-specific directories too, if they exist. | # Create the project-specific directories too, if they exist. |
# This supplementary target.mk file is built by the configure script, using either | # This supplementary target.mk file is built by the configure script, using either |
# configsdp.txt (for a JSOC-SDP checkout) or a custom configuration file as input. | # configsdp.txt (for a JSOC-SDP checkout) or a custom configuration file as input. |
-include $(WORKINGDIR)/$(LOCALIZATIONDIR)/target.mk |
PATH_FILES := $(shell find $(WORKINGDIR)/proj -name paths.mk -printf "%p ") |
|
-include $(PATH_FILES) |
| |
$(OBJDIR): | $(OBJDIR): |
+@[ -d bin/$(MACH) ] || mkdir -p bin/$(MACH) | +@[ -d bin/$(MACH) ] || mkdir -p bin/$(MACH) |
|
|
+@[ -d $@/base/sums/libs/api ] || mkdir -p $@/base/sums/libs/api | +@[ -d $@/base/sums/libs/api ] || mkdir -p $@/base/sums/libs/api |
+@[ -d $@/base/sums/libs/pg ] || mkdir -p $@/base/sums/libs/pg | +@[ -d $@/base/sums/libs/pg ] || mkdir -p $@/base/sums/libs/pg |
+@[ -d $@/base/util/apps ] || mkdir -p $@/base/util/apps | +@[ -d $@/base/util/apps ] || mkdir -p $@/base/util/apps |
+@[ -d $@/proj/example/apps ] || mkdir -p $@/proj/example/apps |
|
+@[ -d $@/proj/myproj/apps ] || mkdir -p $@/proj/myproj/apps |
|
+@[ -d $@/proj/cookbook ] || mkdir -p $@/proj/cookbook |
|
+@$(MAKETARGET) | +@$(MAKETARGET) |
| |
# These rules keep make from trying to use the match-anything rule below to | # These rules keep make from trying to use the match-anything rule below to |
|
|
.PHONY: clean | .PHONY: clean |
clean: | clean: |
rm -rf $(OBJDIR); rm -rf bin/$(MACH); rm -rf lib/$(MACH) | rm -rf $(OBJDIR); rm -rf bin/$(MACH); rm -rf lib/$(MACH) |
|
|