diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-09-20 12:25:51 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-09-20 12:25:51 +0200 |
commit | 0def4ef080ddd5bf5c39596f43de5be11739d491 (patch) | |
tree | 6e9a09846ad71129cae993963f85fe4e8cb31c39 /Makefile | |
parent | 911a6e3cd7e056d329cf18d6bad2038f946ba65d (diff) | |
download | slackupgrade-0def4ef080ddd5bf5c39596f43de5be11739d491.tar.gz slackupgrade-0def4ef080ddd5bf5c39596f43de5be11739d491.tar.bz2 |
Inroduce external package replacement maps
* Makefile: Install replacement maps
* conf/14.0-14.1.repl: New file.
* conf/14.1-14.2.repl: New file.
* slackware-upgrade-system: Read replacement map from the file
in the program's configuration directory. Improve parses to allow for
comments, empty lines and line continuations.
* slackware-upgrade-system.8: Document replacement maps.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -15,12 +15,14 @@ # along with slackware-upgrade-system. If not, see # <http://www.gnu.org/licenses/>. -PACKAGE=slackupgrade -VERSION=0.1 +PACKAGE = slackupgrade +VERSION = 0.1 -SBINDIR=/sbin -MANDIR=/usr/man -MAN8DIR=$(MANDIR)/man8 +SBINDIR = /sbin +MANDIR = /usr/man +MAN8DIR = $(MANDIR)/man8 +CONFDIR = /etc/slackware-system-upgrade +CONFFILES = conf/14.0-14.1.repl conf/14.1-14.2.repl help:; @echo "Avalable targets:" @@ -42,7 +44,7 @@ help:; # ########################## # Installation rules # ########################## -install: install-sbin install-man +install: install-sbin install-conf install-man install-sbin: @if ! test -d $(DESTDIR)$(SBINDIR); then install -d $(DESTDIR)$(SBINDIR); fi @@ -52,17 +54,22 @@ install-man: @if ! test -d $(DESTDIR)$(MAN8DIR); then install -d $(DESTDIR)$(MAN8DIR); fi install -m 644 slackware-upgrade-system.8 $(DESTDIR)$(MAN8DIR) +install-conf: + @if ! test -d $(DESTDIR)$(CONFDIR); then install -d $(DESTDIR)$(CONFDIR); fi + install -m 644 $(CONFFILES) $(DESTDIR)$(CONFDIR) + # ########################## # Distribution tarball rules # ########################## -DISTDIR=$(PACKAGE)-$(VERSION) -DISTFILES=\ +DISTDIR = $(PACKAGE)-$(VERSION) +DISTFILES =\ slackware-upgrade-system\ slackware-upgrade-system.8\ Makefile\ COPYING\ - README + README\ + $(CONFFILES) distdir: test -d $(DISTDIR) || mkdir $(DISTDIR) |