diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2018-12-09 16:34:49 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2018-12-09 16:34:49 +0100 |
| commit | 6c876189d8a8b4b4cad9832c20055b89b56786ad (patch) | |
| tree | 1d45d7451c0d986ebe55fdc8cc0a5bb5cdbb69da | |
| parent | d087bae685d4d2eb34c53ca5d7d39edfdc6d6d5c (diff) | |
Fix MacOS-specific regression appeared with move to git when building test with configure.
The svn contained empty directories, e.g., test/blocks.app/Contents/MacOS/
Git apparently can't store empty directories.
The test/Makefile is modified to create these directories at build-time.
| -rw-r--r-- | test/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile index 803094340..9b39f4388 100644 --- a/test/Makefile +++ b/test/Makefile @@ -309,11 +309,15 @@ buttons$(EXEEXT): buttons.o blocks$(EXEEXT): blocks.o echo Linking $@... $(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) blocks.o -o $@ $(AUDIOLIBS) $(LINKFLTK) $(LDLIBS) + $(OSX_ONLY) $(RM) -f -r blocks.app/Contents/MacOS + $(OSX_ONLY) mkdir blocks.app/Contents/MacOS $(OSX_ONLY) $(INSTALL_BIN) blocks$(EXEEXT) blocks.app/Contents/MacOS checkers$(EXEEXT): checkers.o echo Linking $@... $(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) checkers.o -o $@ $(LINKFLTK) $(LDLIBS) + $(OSX_ONLY) $(RM) -f -r checkers.app/Contents/MacOS + $(OSX_ONLY) mkdir checkers.app/Contents/MacOS $(OSX_ONLY) $(INSTALL_BIN) checkers$(EXEEXT) checkers.app/Contents/MacOS clock$(EXEEXT): clock.o @@ -464,6 +468,8 @@ subwindow$(EXEEXT): subwindow.o sudoku: sudoku.o echo Linking $@... $(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) sudoku.o -o $@ $(AUDIOLIBS) $(LINKFLTKIMG) $(LDLIBS) + $(OSX_ONLY) $(RM) -r -f sudoku.app/Contents/MacOS + $(OSX_ONLY) mkdir sudoku.app/Contents/MacOS $(OSX_ONLY) $(INSTALL_BIN) sudoku$(EXEEXT) sudoku.app/Contents/MacOS sudoku.exe: sudoku.o sudoku.rc |
