aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 16 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 09a5a8c..3d90bb6 100644
--- a/Makefile
+++ b/Makefile
@@ -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)

Return to:

Send suggestions and report system problems to the System administrator.