-$(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf:
- make build_setup
-
-$(COMPOBJROOT)/$(PEXPERT_KERNEL_CONFIG)/Makefile : $(SOURCE)/MASTER \
- $(SOURCE)/MASTER.$(ARCH_CONFIG_LC) \
- $(SOURCE)/Makefile.template \
- $(SOURCE)/Makefile.$(ARCH_CONFIG_LC) \
- $(SOURCE)/files \
- $(SOURCE)/files.$(ARCH_CONFIG_LC) \
- $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf
- @echo "Running doconf for $(PEXPERT_KERNEL_CONFIG)";
- (doconf_target=$(addsuffix /conf, $(TARGET)); \
- echo $${doconf_target};\
- $(MKDIR) $${doconf_target}; \
- cd $${doconf_target}; \
- rm -f $(notdir $?); \
- cp $? $${doconf_target}; \
- $(OBJROOT)/$(KERNEL_CONFIG)_$(ARCH_CONFIG)/$(COMPONENT)/doconf -c -cpu $(ARCH_CONFIG_LC) -d $(TARGET)/$(PEXPERT_KERNEL_CONFIG) $(PEXPERT_KERNEL_CONFIG); \
- );
-
-.ORDER: $(COMPOBJROOT)/$(PEXPERT_KERNEL_CONFIG)/Makefile
+ifneq (,$(wildcard $(MASTERCONFDIR)/MASTER.$(DOCONF_ARCH_CONFIG_LC).$(CURRENT_MACHINE_CONFIG_LC)))
+DOCONFDEPS += $(MASTERCONFDIR)/MASTER.$(DOCONF_ARCH_CONFIG_LC).$(CURRENT_MACHINE_CONFIG_LC)
+endif