tazpkg view 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 |
line source
1 # Makefile for Tazpkg.
2 #
3 PREFIX?=/usr
4 DOCDIR?=$(PREFIX)/share/doc
5 LIBDIR?=$(PREFIX)/lib/slitaz
7 all:
8 grep "^VERSION=[0-9]" tazpkg | sed 's/VERSION=//'
10 install:
11 @echo "Installing Tazpkg into $(PREFIX)/bin..."
12 install -g root -o root -m 0755 -d $(PREFIX)/bin
13 install -g root -o root -m 0777 tazpkg $(PREFIX)/bin
14 install -g root -o root -m 0777 tazpkgbox $(PREFIX)/bin
15 @echo "Installing Tazpkgbox lib into $(LIBDIR)..."
16 install -g root -o root -m 0755 -d $(LIBDIR)
17 cp -a lib/tazpkgbox $(LIBDIR)
18 @echo "Installing documentation files..."
19 install -g root -o root -m 0755 -d $(DOCDIR)/tazpkg
20 install -g root -o root -m 0644 doc/* $(DOCDIR)/tazpkg
22 uninstall:
23 rm -f $(PREFIX)/bin/tazpkg
24 rm -f $(PREFIX)/bin/tazpkgbox
25 rm -f $(LIBDIR)/tazpkgbox
26 rm -rf $(DOCDIR)/tazpkg