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