tazpkg annotate Makefile @ rev 305

fix mirrors path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 25 16:40:56 2009 +0100 (2009-11-25)
parents c8ec3c01ac1f
children 3a410bbead4c
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@5 6
pankso@5 7 all:
erjo@259 8 grep "^VERSION=[0-9]" tazpkg | sed 's/VERSION=//'
erjo@259 9
pankso@5 10 install:
pankso@5 11 @echo "Installing Tazpkg into $(PREFIX)/bin..."
erjo@259 12 install -g root -o root -m 0755 -d $(PREFIX)/bin
pankso@5 13 install -g root -o root -m 0777 tazpkg $(PREFIX)/bin
pankso@149 14 install -g root -o root -m 0777 tazpkgbox $(PREFIX)/bin
erjo@259 15 @echo "Installing Tazpkgbox lib into $(LIBDIR)..."
erjo@259 16 install -g root -o root -m 0755 -d $(LIBDIR)
erjo@259 17 cp -a lib/tazpkgbox $(LIBDIR)
pankso@5 18 @echo "Installing documentation files..."
pankso@5 19 install -g root -o root -m 0755 -d $(DOCDIR)/tazpkg
pankso@5 20 install -g root -o root -m 0644 doc/* $(DOCDIR)/tazpkg
pankso@5 21
pankso@5 22 uninstall:
pankso@5 23 rm -f $(PREFIX)/bin/tazpkg
erjo@259 24 rm -f $(PREFIX)/bin/tazpkgbox
erjo@259 25 rm -f $(LIBDIR)/tazpkgbox
pankso@5 26 rm -rf $(DOCDIR)/tazpkg
erjo@259 27