mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 10:49:12 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
50 lines
1.7 KiB
Makefile
50 lines
1.7 KiB
Makefile
# -*-makefile-*-
|
|
# CompatibilityHeaders.make
|
|
#
|
|
# Create compatibility headers so that code written before the big header
|
|
# move will continue to compile (for a while).
|
|
#
|
|
# Copyright (C) 2003 Free Software Foundation, Inc.
|
|
#
|
|
#
|
|
# Author: Alexander Malmberg <alexander@malmberg.org>
|
|
# Date: 2003-07-29
|
|
#
|
|
# This file is part of the GNUstep project.
|
|
#
|
|
# This library 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.
|
|
#
|
|
# You should have received a copy of the GNU General Public
|
|
# License along with this library; see the file COPYING.LIB.
|
|
# If not, write to the Free Software Foundation,
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
# The usage should be fairly obvious. For each pair of OLD_DIR and NEW_DIR,
|
|
# make a copy and set OLD_DIR, NEW_DIR, and LIST. Note that LIST must be
|
|
# non-empty; if there are no files for a pair, remove it completely.
|
|
|
|
after-install::
|
|
@echo Installing compatibility headers...
|
|
|
|
@OLD_DIR=AppKit; NEW_DIR=GNUstepGUI; \
|
|
LIST="$(GUI_HEADERS)" ;\
|
|
$(MKDIRS) $(GNUSTEP_HEADERS)/$$OLD_DIR; \
|
|
for I in $$LIST ; do \
|
|
(echo "#warning $$I is now included using the path <$$NEW_DIR/$$I>";\
|
|
echo "#include <$$NEW_DIR/$$I>" ) \
|
|
> $(GNUSTEP_HEADERS)/$$OLD_DIR/$$I; \
|
|
done
|
|
|
|
@OLD_DIR=gnustep/gui; NEW_DIR=GNUstepGUI; \
|
|
LIST="$(GUI_HEADERS)" ;\
|
|
$(MKDIRS) $(GNUSTEP_HEADERS)/$$OLD_DIR; \
|
|
for I in $$LIST ; do \
|
|
(echo "#warning $$I is now included using the path <$$NEW_DIR/$$I>";\
|
|
echo "#include <$$NEW_DIR/$$I>" ) \
|
|
> $(GNUSTEP_HEADERS)/$$OLD_DIR/$$I; \
|
|
done
|
|
|