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 | |
---|
3 | PKG = tvctl |
---|
4 | VER = 0.1 |
---|
5 | PYTHON = python |
---|
6 | prefix = /usr/local |
---|
7 | bindir = $(DESTDIR)$(prefix)/bin |
---|
8 | docdir = $(DESTDIR)$(prefix)/share/doc/$(PKG)-$(VER) |
---|
9 | localedir = $(DESTDIR)$(prefix)/share/locale |
---|
10 | |
---|
11 | PROG = src/tvctl.py |
---|
12 | DOCS = doc/COPYING doc/dot.tvctl.sample |
---|
13 | PO = $(shell find po -name "*.po") |
---|
14 | MO = $(PO:.po=.mo) |
---|
15 | |
---|
16 | all: $(MO) |
---|
17 | |
---|
18 | $(MO): %.mo: %.po |
---|
19 | msgfmt $< -o po/`basename $< .po`.mo |
---|
20 | |
---|
21 | install-doc: |
---|
22 | install -m0755 -d $(docdir) |
---|
23 | for d in $(DOCS); do \ |
---|
24 | install -m0644 $$d $(docdir); \ |
---|
25 | done |
---|
26 | |
---|
27 | install-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 | |
---|
34 | install: all install-doc install-mo |
---|
35 | install -m0755 -d $(bindir) |
---|
36 | install -m0755 $(PROG) $(bindir) |
---|
37 | |
---|
38 | clean: |
---|
39 | rm -f $(MO) |
---|
Note: See
TracBrowser
for help on using the repository browser.