source: tvctl/branches/release-0.1/Makefile @ 42

Revision 42, 823 bytes checked in by atzm, 14 years ago (diff)
  • modified directory structure
  • Property svn:keywords set to Id
Line 
1# $Id$
2
3PKG       = tvctl
4VER       = 0.1
5PYTHON    = python
6prefix    = /usr/local
7bindir    = $(DESTDIR)$(prefix)/bin
8docdir    = $(DESTDIR)$(prefix)/share/doc/$(PKG)-$(VER)
9localedir = $(DESTDIR)$(prefix)/share/locale
10
11PROG      = src/tvctl.py
12DOCS      = doc/COPYING doc/dot.tvctl.sample
13PO        = $(shell find po -name "*.po")
14MO        = $(PO:.po=.mo)
15
16all: $(MO)
17
18$(MO): %.mo: %.po
19        msgfmt $< -o po/`basename $< .po`.mo
20
21install-doc:
22        install -m0755 -d $(docdir)
23        for d in $(DOCS); do \
24                install -m0644 $$d $(docdir); \
25        done
26
27install-mo:
28        for mo in $(MO); do \
29                dir=$(localedir)/`basename $$mo .mo`/LC_MESSAGES; \
30                install -m0755 -d $$dir; \
31                install -m0644 $$mo $$dir/$(PKG).mo; \
32        done
33
34install: all install-doc install-mo
35        install -m0755 -d $(bindir)
36        install -m0755 $(PROG) $(bindir)
37
38clean:
39        rm -f $(MO)
Note: See TracBrowser for help on using the repository browser.