aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8b6dec7..d9645c2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,25 @@
+# This file is part of addts
+# Copyright (C) 2018, 2019 Sergey Poznyakoff
+#
+# Addts is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Addts is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with addts. If not, see <http://www.gnu.org/licenses/>.
+
PREFIX=/usr/local
PROJECT=addts
VERSION=1.0
# Installation directories:
-INSTALLDIR=$(PREFIX)/bin
+BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
MAN1DIR=$(MANDIR)/man1
@@ -14,11 +30,11 @@ clean:
rm -f *.o addts
install: addts
- install addts $(DESTDIR)$(INSTALLDIR)
+ install addts $(DESTDIR)$(BINDIR)
install addts.1 $(DESTDIR)$(MAN1DIR)
DISTDIR=$(PROJECT)-$(VERSION)
-DISTFILES=addts.c addts.1 Makefile
+DISTFILES=addts.c addts.1 Makefile README NEWS
distdir:
test -d $(DISTDIR) || mkdir $(DISTDIR)
@@ -30,7 +46,7 @@ dist: distdir
distcheck: dist
tar xfz $(DISTDIR).tar.gz
- if $(MAKE) -C $(DISTDIR) $(DISTCHECKFLAGS); then \
+ @if $(MAKE) -C $(DISTDIR) $(DISTCHECKFLAGS); then \
echo "$(DISTDIR).tar.gz ready for distribution"; \
rm -rf $(DISTDIR); \
else \

Return to:

Send suggestions and report system problems to the System administrator.