tazpkg view Makefile @ rev 441
Added tag 4.3-beta for changeset a2c85fb62124
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Mar 16 04:23:02 2011 +0100 (2011-03-16) |
parents | 0155e1b43fc9 |
children | 51c342baf04a |
line source
1 # Makefile for Tazpkg.
2 #
3 PREFIX?=/usr
4 DOCDIR?=$(PREFIX)/share/doc
5 LIBDIR?=$(PREFIX)/lib/slitaz
6 SYSCONFDIR?=/etc/slitaz
7 DESTDIR?=
8 LINGUAS?=fr
10 all:
12 # i18n.
14 pot:
15 xgettext -o po/tazpkg/tazpkg.pot -L Shell --package-name=Tazpkg ./tazpkg
16 xgettext -o po/tazpkgbox/tazpkgbox.pot -L Shell --package-name=Tazpkgbox ./tazpkgbox
17 xgettext -o po/libtazpkgbox/libtazpkgbox.pot -L Shell --package-name=LibTazpkgbox ./lib/libtazpkgbox
19 msgmerge:
20 @for l in $(LINGUAS); do \
21 echo -n "Updating $$l po file."; \
22 msgmerge -U po/tazpkg/$$l.po po/tazpkg/tazpkg.pot ; \
23 done;
25 msgfmt:
26 @for l in $(LINGUAS); do \
27 echo "Compiling $$l mo file..."; \
28 mkdir -p po/mo/$$l/LC_MESSAGES; \
29 msgfmt -o po/mo/$$l/LC_MESSAGES/tazpkg.mo po/tazpkg/$$l.po ; \
30 done;
32 # Installation.
34 install: msgfmt
35 # Tazpkg command line interface
36 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin
37 install -m 0777 tazpkg $(DESTDIR)$(PREFIX)/bin
38 # Tazpkgbox GUI
39 install -m 0777 tazpkgbox $(DESTDIR)$(PREFIX)/bin
40 install -m 0777 tazpkgbox-install $(DESTDIR)$(PREFIX)/bin
41 install -m 0755 -d $(DESTDIR)$(LIBDIR)
42 install -m 0777 lib/libtazpkgbox $(DESTDIR)$(LIBDIR)
43 # Configuration files
44 install -m 0755 -d $(DESTDIR)$(SYSCONFDIR)
45 install -m 0644 tazpkg.conf $(DESTDIR)$(SYSCONFDIR)
46 # Documentation
47 install -m 0755 -d $(DESTDIR)$(DOCDIR)/tazpkg
48 cp -a doc/* $(DESTDIR)$(DOCDIR)/tazpkg
49 # The i18n files
50 mkdir -p $(DESTDIR)$(PREFIX)/share/locale
51 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
52 # Desktop integration
53 mkdir -p $(DESTDIR)$(PREFIX)/share
54 cp -a applications $(DESTDIR)$(PREFIX)/share
55 cp -a mime $(DESTDIR)$(PREFIX)/share
56 cp -a pixmaps $(DESTDIR)$(PREFIX)/share
58 # Uninstallation and clean-up commands.
60 uninstall:
61 rm -f $(DESTDIR)$(PREFIX)/bin/tazpkg
62 rm -f $(DESTDIR)$(PREFIX)/bin/tazpkgbox
63 rm -rf $(DESTDIR)$(LIBDIR)/tazpkgbox
64 rm -f $(DESTDIR)$(LIBDIR)/libtazpkgbox
65 rm -rf $(DESTDIR)$(DOCDIR)/tazpkg
66 rm -f $(DESTDIR)$(SYSCONFDIR)/tazpkg.conf
67 rm -rf $(DESTDIR)$(PREFIX)/share/locale/*/LC_MESSAGES/tazpkg*.mo
69 clean:
70 rm -rf _pkg
71 rm -rf po/mo