Show
Ignore:
Timestamp:
09/06/05 13:11:35 (3 years ago)
Author:
nk
Message:

branch for 0.8.2: Makefile and debian/control overwites

Location:
branches/gajim_0.8.2
Files:
1 modified
1 copied

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.8.2/Makefile

    r3335 r3437  
    1 VERSION         ?= 0.8.1 
     1VERSION         ?= 0.9 
    22 
    33GAJIM_AP        = 0 # do we build Autopackage? 
     
    66PREFIX          = /usr/local 
    77DESTDIR         =  
     8OPTFLAGS        =  
     9export OPTFLAGS 
    810LIBDIR          = /lib 
     11export LIBDIR 
    912MANDIR          = $(DESTDIR)$(PREFIX)/share/man 
    1013 
    11 FIND            = find . \( -name '*.glade' -o -name '*.py' -o -name '*.xpm' -o -name '*.gif' -o -name '*.png' -o -name '*.mo' -o -name '*.wav' \) 
     14FIND            = find . \( -name '*.glade' -o -name '*.py' -o -name '*.xpm' -o -name '*.gif' -o -name '*.png' -o -name '*.wav' \) 
    1215 
    1316FILES           = `$(FIND)` 
    1417DIRS            = `$(FIND) -exec dirname {} \; | sort -u` 
     18FIND_PO         = find ./po \( -name '*.mo' \) 
     19FILES_PO        = `$(FIND_PO) | sed -e 's/^\.\/po/\./g'` 
     20DIRS_PO         = `$(FIND_PO) -exec dirname {} \; | sort -u | sed -e 's/^\.\/po/\./g'` 
    1521FIND_LIB        = find . -name '*.so' 
    1622FILES_LIB       = `$(FIND_LIB)` 
     
    4955                cp $$s gajim-$(VERSION)/scripts/; \ 
    5056        done 
    51         cp scripts/gajim-remote.py gajim-$(VERSION)/scripts/; \ 
    5257        find gajim-$(VERSION) -name '.svn' -type d | xargs rm -rf 
    5358        find gajim-$(VERSION) -name '*.pyc' -exec rm {} \; 
     
    6065 
    6166install: 
     67        # Remove the old po folder if it exists 
     68        if [ -d $(DESTDIR)$(PREFIX)/share/gajim/po ] ; then \ 
     69                rm -rf $(DESTDIR)$(PREFIX)/share/gajim/po; \ 
     70        fi 
    6271        for d in $(DIRS) ; do \ 
    6372                if [ ! -d $(DESTDIR)$(PREFIX)/share/gajim/$$d ] ; then \ 
     
    6877                DST=`dirname "$$f"`; \ 
    6978                cp "$$f" "$(DESTDIR)$(PREFIX)/share/gajim/$$DST/"; \ 
     79        done 
     80        rm "$(DESTDIR)$(PREFIX)/share/gajim/src/systraywin32.py" 
     81        for d in $(DIRS_PO) ; do \ 
     82                if [ ! -d $(DESTDIR)$(PREFIX)/share/locale/$$d ] ; then \ 
     83                        mkdir -p "$(DESTDIR)$(PREFIX)/share/locale/$$d"; \ 
     84                fi; \ 
     85        done 
     86        for f in $(FILES_PO) ; do \ 
     87                DST=`dirname "$$f"`; \ 
     88                cp "./po/$$f" "$(DESTDIR)$(PREFIX)/share/locale/$$DST/"; \ 
    7089        done 
    7190        cp COPYING "$(DESTDIR)$(PREFIX)/share/gajim/"; 
     
    117136        rm -rf  "$(DESTDIR)$(PREFIX)/share/gajim" # the main files are here 
    118137        rm -rf  "$(DESTDIR)$(PREFIX)/lib/gajim" # the .so files are here 
    119         rm -f           "$(DESTDIR)$(PREFIX)/bin/gajim" # the bash script 
    120         rm -f           "$(DESTDIR)$(PREFIX)/bin/gajim-remote" # remote-control script 
    121         rm -f           "$(MANDIR)/man1/gajim.1.gz" # the man page 
    122         rm -f           "$(DESTDIR)$(PREFIX)/share/pixmaps/gajim.png" # the icon 
    123         rm -f           "$(DESTDIR)$(PREFIX)/share/applications/gajim.desktop" #the desktop 
     138        rm -f   "$(DESTDIR)$(PREFIX)/bin/gajim" # the bash script 
     139        rm -f   "$(DESTDIR)$(PREFIX)/bin/gajim-remote" # remote-control script 
     140        rm -f   "$(MANDIR)/man1/gajim.1.gz" # the man page 
     141        rm -f   "$(MANDIR)/man1/gajim-remote.1.gz" # the man page 
     142        rm -f   "$(DESTDIR)$(PREFIX)/share/pixmaps/gajim.png" # the icon 
     143        rm -f   "$(DESTDIR)$(PREFIX)/share/applications/gajim.desktop" #the desktop 
    124144        @echo done uninstalling