X-Git-Url: https://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=Makefile;h=9a10eed581b3f2c4fc1654f1a11b0b7efca6af66;hp=7e547ec0d2443ed2b32b4c9e1c8da6a56556f1f6;hb=103d77e0ce929f3f57b2b75bc38e92b9c2d973c3;hpb=bad5757ade771cb803eea778f61da9a4ff74b87e diff --git a/Makefile b/Makefile index 7e547ec..9a10eed 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ## Configuration section -VERSION = 1.3.1 +VERSION = 1.3.2 # Debug mode (verbose) DEBUG = 0 ROOT = @@ -134,6 +134,7 @@ clean: find . -name '#*' | xargs rm -f find . -name '.#*' | xargs rm -f find . -name '*~' | xargs rm -f + -gunzip man/*.gz rm -rf man.deb chmod 755 ybin/ybin ybin/ofpath ybin/yabootconfig chmod -R u+rwX,go=rX . @@ -169,7 +170,12 @@ install: all strip install -o root -g root -m 0644 man/ybin.8.gz ${ROOT}/${PREFIX}/${MANDIR}/man8/ybin.8.gz install -o root -g root -m 0644 man/yaboot.conf.5.gz ${ROOT}/${PREFIX}/${MANDIR}/man5/yaboot.conf.5.gz @gunzip man/*.gz - @[ ! -e ${ROOT}/etc/yaboot.conf ] && install -o root -g root -m 0644 etc/yaboot.conf ${ROOT}/etc/yaboot.conf + @if [ ! -e ${ROOT}/etc/yaboot.conf ] ; then \ + echo "install -o root -g root -m 0644 etc/yaboot.conf ${ROOT}/etc/yaboot.conf"; \ + install -o root -g root -m 0644 etc/yaboot.conf ${ROOT}/etc/yaboot.conf; \ + else \ + echo "/etc/yaboot.conf already exists, leaving it alone"; \ + fi @echo @echo "Installation successful." @echo