home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / inetutils-1.2-src.tgz / tar.out / fsf / inetutils / rules.make < prev    next >
Text File  |  1996-09-28  |  3KB  |  73 lines

  1. # Generic make rules for inetutils
  2. #
  3. # Copyright (C) 1995, 1996 Free Software Foundation, Inc.
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. #
  19.  
  20. all:
  21.  
  22. .PHONY: install uninstall clean mostlyclean distclean maintainer-clean dist
  23.  
  24. install:: $(INSTALL_TARGETS)
  25. uninstall::
  26.     -$(RM) -f $(INSTALL_TARGETS)
  27.  
  28. clean mostlyclean::
  29.     $(RM) -f $(CLEAN)
  30. distclean:: clean
  31.     $(RM) -f Makefile $(DISTCLEAN)
  32. maintainer-clean:: clean
  33.     $(RM) -f Makefile $(DISTCLEAN) $(MAINTCLEAN)
  34.  
  35. dist:: $(DISTFILES)
  36.     $(LINK_DISTFILES)
  37.  
  38. $(bindir)/%: % $(bindir)
  39.     $(INSTALL_PROGRAM) $(INST_PROG_FLAGS) $(filter-out $(bindir),$<) $@
  40. $(includedir)/%: % $(includedir)
  41.     $(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(includedir),$<) $@
  42. $(includedir)/%: $(srcdir)/% $(includedir)
  43.     $(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(includedir),$<) $@
  44. $(libdir)/%: % $(libdir)
  45.     $(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(libdir),$<) $@
  46. $(sbindir)/%: % $(sbindir)
  47.     $(INSTALL_PROGRAM) $(INST_PROG_FLAGS) $(filter-out $(sbindir),$<) $@
  48. $(libexecdir)/%: % $(libexecdir)
  49.     $(INSTALL_PROGRAM) $(INST_PROG_FLAGS) $(filter-out $(libexecdir),$<) $@
  50. $(libexecdir)/in.%: % $(libexecdir)
  51.     $(INSTALL_PROGRAM) $(INST_PROG_FLAGS) $(filter-out $(libexecdir),$<) $@
  52. $(sysconfdir)/%: % $(sysconfdir)
  53.     $(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(sysconfdir),$<) $@
  54. $(localstatedir)/%: % $(localstatedir)
  55.     $(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(localstatedir),$<) $@
  56. $(sharedstatedir)/%: % $(sharedstatedir)
  57.     $(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(sharedstatedir),$<) $@
  58. $(man1dir)/%: % $(man1dir)
  59.     -$(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(man1dir),$<) $@
  60. $(man1dir)/%: $(srcdir)/% $(man1dir)
  61.     -$(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(man1dir),$<) $@
  62. $(man5dir)/%: % $(man5dir)
  63.     -$(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(man5dir),$<) $@
  64. $(man5dir)/%: $(srcdir)/% $(man5dir)
  65.     -$(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(man5dir),$<) $@
  66. $(man8dir)/%: % $(man8dir)
  67.     -$(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(man8dir),$<) $@
  68. $(man8dir)/%: $(srcdir)/% $(man8dir)
  69.     -$(INSTALL_DATA) $(INST_DATA_FLAGS) $(filter-out $(man8dir),$<) $@
  70.  
  71. $(bindir) $(includedir) $(libdir) $(sbindir) $(libexecdir) $(sysconfdir) $(localstatedir) $(sharedstatedir) $(mandir) $(man1dir) $(man5dir) $(man8dir):
  72.     @$(MKINSTDIRS) $@
  73.