sdext/source/presenter/makefile.mk .IF/.ENDIF mismatch

James Lee <[email protected]>
Newsgroups gmane.comp.openoffice.devel.general
Message-ID <[email protected]>
I'm failing to build OOO330_m20.  It stops in sdtext with the message:

Entering /XXXXX/XXXXX/XXXXX/OOO330_m20/sdext/source/presenter

dmake:  makefile.mk:  line 297:  Error: -- Missing targets or attributes
in rule


The problem could be unmatched if/else/endif statements, there is
an overlap of L10N_framework and ENABLE_PRESENTER_SCREEN, although the
total IFs equals the total ENDIFs, see below.


$ egrep '(\.IF|\.ELSE|\.ENDIF)' sdext/source/presenter/makefile.mk
.IF "$(L10N_framework)"==""
.IF "$(ENABLE_PRESENTER_SCREEN)" == "NO"
.ELSE
.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT"
.ELSE
.ENDIF
.IF "$(WITH_LANG)"==""
.ELSE                   # "$(WITH_LANG)"==""
.ENDIF                  # "$(WITH_LANG)"==""
.ENDIF # L10N_framework
.IF "$(L10N_framework)"==""
.IF "$(OS)$(CPU)"=="WNTI"
.IF "$(COM)"=="GCC"
.ELSE
        .IF "$(PACKMS)"!=""
                .IF "$(CCNUMVER)" <= "001399999999"
                .ELSE
                        .IF "$(CCNUMVER)" <= "001499999999"
                        .ELSE
                        .ENDIF
            .ENDIF
        .ELSE        # "$(PACKMS)"!=""
                .IF "$(CCNUMVER)" <= "001399999999"
                .ELSE
                        .IF "$(CCNUMVER)" <= "001499999999"
                        .ELSE
                        .ENDIF
            .ENDIF
        .ENDIF         # "$(PACKMS)"!=""
.ENDIF  #"$(COM)"=="GCC"
.ENDIF
.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT"
.ELSE
.ENDIF
.IF "$(LAST_WITH_LANG)"!="$(WITH_LANG)"
.ENDIF                  # "$(LAST_WITH_LANG)"!="$(WITH_LANG)"
.ENDIF # "$(ENABLE_PRESENTER_SCREEN)" != "NO"
.ELSE
.ENDIF # L10N_framework

$ grep '\.IF' sdext/source/presenter/makefile.mk | wc -l
      14
$ grep '\.ENDIF' sdext/source/presenter/makefile.mk | wc -l
      14


James.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.