1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
# -*-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., 31 Milk Street #960789 Boston, MA 02196 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$(END_ECHO)
ifeq ($(GNUSTEP_GDOMAP_PORT_OVERRIDE),no)
ifeq ($(GNUSTEP_INSTALL_GDOMAP_AS_SETUID),no)
$(ECHO_NOTHING)echo ""; \
echo "Note: gdomap has not been made setuid to root, so you must"; \
echo "start it up as root. Most often this is done at system boot"; \
echo "by executing 'gdomap -p' in the startup scripts."; \
echo ""$(END_ECHO)
else
$(ECHO_NOTHING)echo ""; \
if [ "`$(WHOAMI)`" != "root" ]; then \
echo ""; \
echo "************************************************************"; \
echo "WARNING: gdomap has not been made setuid to root ..."; \
echo "NOTE: Unless gdomap is started as root at system boot time,"; \
echo "it MUST either be installed owned by root and with the"; \
echo "'s-bit' or you must have defined 'GDOMAP_PORT_OVERRIDE' in"; \
echo "gdomap.h before compiling gdomap.c and NSPortNameServer.m"; \
echo "If either of those cases applies, ignore this message."; \
echo "************************************************************"; \
echo ""; \
else \
echo "Making gdomap in $(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_DIR) setuid to root"; \
echo "WARNING: if possible, you should remove the setuid flag and"; \
echo "WARNING: have gdomap started as root at machine boot time."; \
$(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)
endif
endif
# 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::
#
# If building with the Apple Foundation, we don't include the base 'Headers'
# directory in the includes path, but we need the additions headers so we
# link to them from the current directory.
#
ifeq ($(FOUNDATION_LIB),apple)
before-all::
rm -f GNUstepBase
ln -s ../Headers/GNUstepBase GNUstepBase
after-clean::
rm -f GNUstepBase
endif
|