вот то что нужно в мейк файле
reset_data:
-$(DEL_FILE) *.tmp *.ref *.cfg
-$(COPY_FILE) ./default/*.cfg *cfg
-$(COPY_FILE) ./referents/default.ref $(TARGET).ref
reset_data:
-$(DEL_FILE) *.tmp *.ref *.cfg
-$(COPY_FILE) ./default/*.cfg *cfg
-$(COPY_FILE) ./referents/default.ref $(TARGET).ref
#========= Makefile Target for preprocessoring =======
topreprocessor1.target = %.i
topreprocessor1.depends = $(MAKEFILE).Debug FORCE
topreprocessor1.commands = $(MAKE) -f $(MAKEFILE).Debug $@
QMAKE_EXTRA_TARGETS += topreprocessor1
CONFIG (debug, debug|release) {
topreprocessorcpp.target = %.i
topreprocessorcpp.depends = %.cpp
topreprocessorcpp.commands = $(CXX) -E $(CXXFLAGS) $(INCPATH) $< -o $@
QMAKE_EXTRA_TARGETS += topreprocessorcpp
topreprocessorh.target = %.i
topreprocessorh.depends = %.h
topreprocessorh.commands = $(CXX) -E $(CXXFLAGS) $(INCPATH) $< -o $@
QMAKE_EXTRA_TARGETS += topreprocessorh
toprprocessorc.target = %.i
toprprocessorc.depends = %.c
toprprocessorc.commands = $(CXX) -E $(CXXFLAGS) $(INCPATH) $< -o $@
QMAKE_EXTRA_TARGETS += toprprocessorc
%.i: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug $@
%.i: %.cpp
$(CXX) -E $(CXXFLAGS) $(INCPATH) $< -o $@
%.i: %.h
$(CXX) -E $(CXXFLAGS) $(INCPATH) $< -o $@
%.i: %.c
$(CXX) -E $(CXXFLAGS) $(INCPATH) $< -o $@