po: Fix Makefile rules for in-tree builds without configuration
commitbcc55f327c571295193880110c048b463bce6677
authorStefan Weil <sw@weilnetz.de>
Fri, 18 Jul 2014 14:52:29 +0000 (18 16:52 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 24 Aug 2014 09:16:42 +0000 (24 13:16 +0400)
tree40b6f5232c0c705619c3c25149a3cfad697c1c86
parent2fd5d864099dd38b43b595e9e3375dad2f76049b
po: Fix Makefile rules for in-tree builds without configuration

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: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
po/Makefile