Add 'run-dmake' as PHONY target to Makefile to avoid linking dmake always
This commit is contained in:
parent
b46df3d551
commit
0d7d1e8350
4
Makefile
4
Makefile
|
@ -230,7 +230,7 @@ endif
|
||||||
|
|
||||||
|
|
||||||
EXTOBJ += $(TINYXML)
|
EXTOBJ += $(TINYXML)
|
||||||
.PHONY: dmake
|
.PHONY: run-dmake
|
||||||
|
|
||||||
|
|
||||||
###### Targets
|
###### Targets
|
||||||
|
@ -254,6 +254,8 @@ checkcfg: cppcheck
|
||||||
|
|
||||||
dmake: tools/dmake.o cli/filelister.o cli/pathmatch.o lib/path.o
|
dmake: tools/dmake.o cli/filelister.o cli/pathmatch.o lib/path.o
|
||||||
$(CXX) $(CXXFLAGS) -std=c++0x -o dmake tools/dmake.o cli/filelister.o cli/pathmatch.o lib/path.o -Ilib $(LDFLAGS)
|
$(CXX) $(CXXFLAGS) -std=c++0x -o dmake tools/dmake.o cli/filelister.o cli/pathmatch.o lib/path.o -Ilib $(LDFLAGS)
|
||||||
|
|
||||||
|
run-dmake: dmake
|
||||||
./dmake
|
./dmake
|
||||||
|
|
||||||
reduce: tools/reduce.o externals/tinyxml/tinyxml2.o $(LIBOBJ)
|
reduce: tools/reduce.o externals/tinyxml/tinyxml2.o $(LIBOBJ)
|
||||||
|
|
|
@ -386,7 +386,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
makeExtObj(fout, externalfiles);
|
makeExtObj(fout, externalfiles);
|
||||||
|
|
||||||
fout << ".PHONY: dmake\n\n";
|
fout << ".PHONY: run-dmake\n\n";
|
||||||
fout << "\n###### Targets\n\n";
|
fout << "\n###### Targets\n\n";
|
||||||
fout << "cppcheck: $(LIBOBJ) $(CLIOBJ) $(EXTOBJ)\n";
|
fout << "cppcheck: $(LIBOBJ) $(CLIOBJ) $(EXTOBJ)\n";
|
||||||
fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -std=c++0x -o cppcheck $(CLIOBJ) $(LIBOBJ) $(EXTOBJ) $(LIBS) $(LDFLAGS) $(RDYNAMIC)\n\n";
|
fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -std=c++0x -o cppcheck $(CLIOBJ) $(LIBOBJ) $(EXTOBJ) $(LIBS) $(LDFLAGS) $(RDYNAMIC)\n\n";
|
||||||
|
@ -400,7 +400,8 @@ int main(int argc, char **argv)
|
||||||
fout << "checkcfg:\tcppcheck\n";
|
fout << "checkcfg:\tcppcheck\n";
|
||||||
fout << "\t./test/cfg/runtests.sh\n\n";
|
fout << "\t./test/cfg/runtests.sh\n\n";
|
||||||
fout << "dmake:\ttools/dmake.o cli/filelister.o cli/pathmatch.o lib/path.o\n";
|
fout << "dmake:\ttools/dmake.o cli/filelister.o cli/pathmatch.o lib/path.o\n";
|
||||||
fout << "\t$(CXX) $(CXXFLAGS) -std=c++0x -o dmake tools/dmake.o cli/filelister.o cli/pathmatch.o lib/path.o -Ilib $(LDFLAGS)\n";
|
fout << "\t$(CXX) $(CXXFLAGS) -std=c++0x -o dmake tools/dmake.o cli/filelister.o cli/pathmatch.o lib/path.o -Ilib $(LDFLAGS)\n\n";
|
||||||
|
fout << "run-dmake: dmake\n";
|
||||||
fout << "\t./dmake\n\n";
|
fout << "\t./dmake\n\n";
|
||||||
fout << "reduce:\ttools/reduce.o externals/tinyxml/tinyxml2.o $(LIBOBJ)\n";
|
fout << "reduce:\ttools/reduce.o externals/tinyxml/tinyxml2.o $(LIBOBJ)\n";
|
||||||
fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -std=c++0x -g -o reduce tools/reduce.o -Ilib -Iexternals/tinyxml $(LIBOBJ) $(LIBS) externals/tinyxml/tinyxml2.o $(LDFLAGS) $(RDYNAMIC)\n\n";
|
fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -std=c++0x -g -o reduce tools/reduce.o -Ilib -Iexternals/tinyxml $(LIBOBJ) $(LIBS) externals/tinyxml/tinyxml2.o $(LDFLAGS) $(RDYNAMIC)\n\n";
|
||||||
|
|
Loading…
Reference in New Issue