Skip to content
  • Stefan Weil's avatar
    po: Fix Makefile rules for in-tree builds without configuration · bcc55f32
    Stefan Weil authored
    
    
    Adding 'update' to the phony targets fixes this error:
    
    $ LANG=C make -C po update
    make: Entering directory `/qemu/po'
      LINK  update
    /qemu/po/de_DE.po: file not recognized: File format not recognized
    collect2: error: ld returned 1 exit status
    make: *** [update] Error 1
    make: Leaving directory `/qemu/po'
    
    Some other phony targets (build, install) were also added, and the
    existing .PHONY statement was moved to a more prominent position at
    the beginning of the Makefile.
    
    The patch also fixes a 2nd bug. The default target should be 'all',
    but instead 'modules' (from rules.mak) was the default. Fix this by
    adding 'all' as a target before any include statement.
    
    Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
    Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
    bcc55f32