From 113bf88115415668b8c2d22223ea9d12b55b43ad Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Mon, 2 May 2005 21:40:33 +0000 Subject: [PATCH] give out additional information about the 'make install' process git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2074 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/Makefile.am | 2 ++ util-vserver/distrib/Makefile.am | 7 ++++++- util-vserver/m4/install-notify.am | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 util-vserver/m4/install-notify.am diff --git a/util-vserver/Makefile.am b/util-vserver/Makefile.am index 333e0fa..be313ed 100644 --- a/util-vserver/Makefile.am +++ b/util-vserver/Makefile.am @@ -225,6 +225,7 @@ _install-vshelperlink: _install-vserverdir: $(mkinstalldirs) $(DESTDIR)$(vserverdir) $(DESTDIR)$(vserverpkgdir) + .fixups: config.status util-vserver.spec chmod a-w util-vserver.spec touch $@ @@ -257,5 +258,6 @@ include $(top_srcdir)/m4/validate.am include $(top_srcdir)/m4/changelog.am include $(top_srcdir)/m4/pkgconfig.am include $(top_srcdir)/m4/libsel.am +include $(top_srcdir)/m4/install-notify.am .PHONY: FORCE update-doc diff --git a/util-vserver/distrib/Makefile.am b/util-vserver/distrib/Makefile.am index 741a988..4e00178 100644 --- a/util-vserver/distrib/Makefile.am +++ b/util-vserver/distrib/Makefile.am @@ -61,8 +61,10 @@ EXTRA_DIST = $(nobase_distrib_DATA) \ redhat_style = rh9 fc1 fc2 fc3 +install-exec-hook: install-notify-xtra +install-data-hook: install-data-xtras -install-data-hook: +install-data-xtras: l="$(redhat_style)"; for i in $$l; do \ ln -sf ../redhat/initpost $(DESTDIR)$(distribdir)/$$i/ && \ ln -sf ../redhat/initpre $(DESTDIR)$(distribdir)/$$i/; \ @@ -72,3 +74,6 @@ install-data-hook: $(DESTDIR)$(confdefaultsdir) \ $(DESTDIR)$(confdefaultsdir)/apps/vunify/hash \ $(DESTDIR)$(confdefaultsdir)/files + + +include $(top_srcdir)/m4/install-notify.am diff --git a/util-vserver/m4/install-notify.am b/util-vserver/m4/install-notify.am new file mode 100644 index 0000000..b4e4b11 --- /dev/null +++ b/util-vserver/m4/install-notify.am @@ -0,0 +1,36 @@ +## $Id$ + +# Copyright (C) 2005 Enrico Scholz +# +# This program 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; version 2 of the License. +# +# This program 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 this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +install-exec-hook install-data-hook: install-notify-xtra + + +install-notify-xtra: + @echo + @echo + @echo '***************************' + @echo '*' + @echo '* NOTE: a plain "make install" installs only the files under $$(prefix)' + @echo '* which might be insufficient. To complete the installation,' + @echo '* "make install-distribution" should be executed. See README,' + @echo '* "Notes for distributors" for details.' + @echo '*' + @echo '***************************' + @echo + @echo + + +.PHONY: install-notify-xtra -- 1.8.1.5