libs-base/Tools/Makefile.postamble
Richard Frith-MacDonald b2b14398d2 allow developers more time to adapt to LGPLv3
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26606 72102866-910b-0410-8b05-ffd578937521
2008-06-08 10:38:33 +00:00

128 lines
4.2 KiB
Makefile

# -*-makefile-*-
#
# Makefile.postamble
#
# Copyright (C) 2005, Free Software Foundation, Inc.
#
# 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; either
# version 2 of the License, or (at your option) any later version.
# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Project specific makefile rules
#
# Uncomment the targets you want.
# The double colons (::) are important, do not make them single colons
# otherwise the normal makefile rules will not be performed.
#
# Things to do before compiling
# before-all::
# Things to do after compiling
# after-all::
# Things to do before installing
before-install::
# Things to do after installing
after-install::
$(ECHO_NOTHING)if [ ! -f $(dtddir) ]; then \
$(MKDIRS) $(dtddir); \
fi; \
for file in $(DTD_FILES); do \
$(INSTALL_DATA) $$file $(dtddir)/$$file; \
done; \
if [ ! -f $(GNUSTEP_DOC_MAN) ]; then \
$(MKDIRS) $(GNUSTEP_DOC_MAN); \
fi; \
if [ ! -f $(GNUSTEP_DOC_MAN)/man1 ]; then \
$(MKDIRS) $(GNUSTEP_DOC_MAN)/man1; \
fi; \
for file in $(MAN1_PAGES) __done; do \
if [ $$file != __done ]; then \
$(INSTALL_DATA) $$file $(GNUSTEP_DOC_MAN)/man1/$$file; \
which gzip && rm -f $(GNUSTEP_DOC_MAN)/man1/$$file.gz \
&& gzip -9 $(GNUSTEP_DOC_MAN)/man1/$$file; \
fi; \
done; \
if [ ! -f $(GNUSTEP_DOC_MAN)/man8 ]; then \
$(MKDIRS) $(GNUSTEP_DOC_MAN)/man8; \
fi; \
for file in $(MAN8_PAGES); do \
$(INSTALL_DATA) $$file $(GNUSTEP_DOC_MAN)/man8/$$file; \
which gzip && rm -f $(GNUSTEP_DOC_MAN)/man8/$$file.gz \
&& gzip -9 $(GNUSTEP_DOC_MAN)/man8/$$file; \
done; \
if [ "`$(WHOAMI)`" != "root" ]; then \
echo ""; \
echo "************************************************************"; \
echo "FAILED gdomap installation - please re-run this as root ..."; \
echo "NOTE: gdomap MUST be installed owned by root and with"; \
echo "the 's-bit' set unless you defined 'GDOMAP_PORT_OVERRIDE' in"; \
echo "gdomap.h before compiling gdomap.c and NSPortNameServer.m"; \
echo "in which case you should install it by hand."; \
echo "If you have installed by hand, ignore this message."; \
echo "************************************************************"; \
echo ""; \
else \
echo "Making gdomap in $(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_DIR) setuid to root"; \
$(INSTALL) -m 05755 $(GNUSTEP_OBJ_DIR)/gdomap $(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_DIR); \
fi; \
echo "************************************************************"; \
echo "WARNING: if gdomap is started automatically, it will probe"; \
echo "all machines on your network periodically so that it can make"; \
echo "services on remote systems available to your local programs"; \
echo "If this is not what you want, gdomap must be started with the"; \
echo "-p flag (to disable probing) or the -c flag (to specify which"; \
echo "remote systems should be probed), and you should add this"; \
echo "startup command to your system boot scripts!"; \
echo "************************************************************"; \
$(END_ECHO)
# Things to do before uninstalling
before-uninstall::
for file in $(DTD_FILES); do \
rm -f $(dtddir)/$$file; \
done
-rmdir $(dtddir)
for file in $(MAN1_PAGES); do \
rm -f $(GNUSTEP_DOC_MAN)/man1/$$file.gz; \
done;
-rmdir $(GNUSTEP_DOC_MAN)/man1;
for file in $(MAN8_PAGES); do \
rm -f $(GNUSTEP_DOC_MAN)/man8/$$file.gz; \
done;
-rmdir $(GNUSTEP_DOC_MAN)/man8;
-rmdir $(GNUSTEP_DOC_MAN);
# Things to do after uninstalling
# after-uninstall::
# Things to do before cleaning
# before-clean::
# Things to do after cleaning
# after-clean::
# Things to do before distcleaning
# before-distclean::
# Things to do after distcleaning
# after-distclean::
# Things to do before checking
# before-check::
# Things to do after checking
# after-check::