tazlito rev 4
Add a Makefile and modified tazlito config path
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Dec 01 12:10:11 2007 +0100 (2007-12-01) |
parents | 8dedc9bde8e2 |
children | ef28b6932017 |
files | Makefile tazlito |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Sat Dec 01 12:10:11 2007 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +# Makefile for Tazlito. 1.5 +# Check the README for more informations. 1.6 +# 1.7 +SBINDIR?=/sbin 1.8 +PREFIX?=/usr 1.9 +DOCDIR?=/usr/share/doc 1.10 + 1.11 +all: 1.12 + 1.13 +# Installation. 1.14 +# Config file goes in /etc/tazlito 1.15 + 1.16 +install: 1.17 + @echo "Installing Tazlito into $(PREFIX)/bin..." 1.18 + install -g root -o root -m 0777 tazlito $(PREFIX)/bin 1.19 + install -g root -o root -m 0755 -d /etc/tazlito 1.20 + install -g root -o root -m 0644 tazlito.conf /etc/tazlito 1.21 + #install -g root -o root -m 0644 distro-packages.list /etc/tazlito 1.22 + @echo "Installing Tazlito documentation..." 1.23 + install -g root -o root -m 0755 -d /usr/share/doc/tazlito 1.24 + install -g root -o root -m 0644 doc/tazlito.html /usr/share/doc/tazlito 1.25 + 1.26 +# Uninstallation commands. 1.27 + 1.28 +uninstall: 1.29 + rm -f $(PREFIX)/bin/tazlito 1.30 + rm -rf /etc/tazlito 1.31 + rm -rf /usr/share/doc/tazlito 1.32 +
2.1 --- a/tazlito Sat Dec 01 12:00:39 2007 +0100 2.2 +++ b/tazlito Sat Dec 01 12:10:11 2007 +0100 2.3 @@ -10,7 +10,7 @@ 2.4 # (C) 2007 SliTaz - GNU General Public License. 2.5 # Author : <pankso@slitaz.org> 2.6 # 2.7 -VERSION=1.1 2.8 +VERSION=1.2pre 2.9 2.10 # Tazlito configuration variables to be shorter 2.11 # and to use words rater than numbers. 2.12 @@ -21,9 +21,9 @@ 2.13 INITRAMFS=rootfs.gz 2.14 2.15 # Try to include config file, continue if command is gen-config or exit. 2.16 -# The main config is in /etc used by default. 2.17 -if [ -f "/etc/slitaz-tools/tazlito.conf" ] ; then 2.18 - CONFIG_FILE="/etc/slitaz-tools/tazlito.conf" 2.19 +# The main config used by default is in /etc/tazlito. 2.20 +if [ -f "/etc/tazlito/tazlito.conf" ] ; then 2.21 + CONFIG_FILE="/etc/tazlito/tazlito.conf" 2.22 fi 2.23 # Specific distro config file can be put in a distro tree. 2.24 if [ -f "$TOP_DIR/tazlito.conf" ] ; then