source: tags/0.2/Makefile @ 335

Revision 136, 1.5 KB checked in by marc, 5 years ago (diff)

Minor makefile improvement, Rewrote the screenshot module completely to support active window screenshots and scaling. Removed useless type-checking and started relying on my own exceptions. Recommented code according to Epytext Markup and also did major tweaks to naming. Better handling of Twisted errors in logging Improved the configuration engine to convert numbers and bools into int and bool rather than str

  • Property svn:executable set to *
Line 
1PYTHON ?= python2.4
2INSTALL ?= install
3RM ?= rm
4MSGFMT ?= msgfmt
5MSGMERGE ?= msgmerge
6XGETTEXT ?= xgettext
7FIND ?= find
8
9# autodetect GNOME prefix, change this if you want it elsewhere
10#PREFIX ?= `pkg-config libgnome-2.0 --variable=prefix || echo /usr`
11PREFIX = /usr
12DESTDIR = $(PREFIX)
13
14LIBDIR = $(DESTDIR)/lib/itaka
15BINDIR = $(DESTDIR)/bin
16DATADIR = $(DESTDIR)/share/itaka
17IMAGESDIR = $(DATADIR)/images
18# For debian compatibility
19REPLACEIMAGESDIR = $(PREFIX)/share/itaka/images
20APPLICATIONSDIR = $(DESTDIR)/share/applications
21ICONDIR = $(DESTDIR)/share/pixmaps
22MANDIR = $(DESTDIR)/share/man/man1
23
24PYFILES := $(shell $(FIND) . -name "*.py" -print)
25
26install:
27        mv config.py config.py.old
28        sed -e "s|/usr/share/itaka/images/|$(REPLACEIMAGESDIR)|g" config.py.old > config.py
29        $(INSTALL) -m 755 -d $(BINDIR) $(DATADIR) $(LIBDIR) $(IMAGESDIR) $(APPLICATIONSDIR) $(ICONDIR) $(MANDIR)
30        $(INSTALL) -m 755 *.py $(LIBDIR)
31        $(INSTALL) -m 644 share/images/* $(IMAGESDIR)
32        $(INSTALL) -m 644 share/images/itaka.png $(ICONDIR)
33        $(INSTALL) -m 644 share/itaka.desktop $(APPLICATIONSDIR)
34        gzip -9 -c share/itaka.1 > share/itaka.1.gz
35        $(INSTALL) -m 644 share/itaka.1.gz $(MANDIR)
36        if test -f $(BINDIR)/itaka; then rm $(BINDIR)/itaka; fi
37        ln -sf  $(LIBDIR)/itaka.py $(BINDIR)/itaka
38        echo $( ls $(BINDIR)/itaka )
39        chmod +x $(BINDIR)/itaka
40        mv config.py.old config.py
41        rm share/itaka.1.gz
42uninstall:
43        rm -r $(BINDIR)/itaka $(DATADIR) $(LIBDIR) $(ICONDIR)/itaka.png $(APPLICATIONSDIR)/itaka.desktop $(MANDIR)/itaka.1.gz
Note: See TracBrowser for help on using the repository browser.