home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / include / makefile
Encoding:
Makefile  |  1997-02-07  |  1.2 KB  |  35 lines

  1. # $Id: makefile,v 1.10 1997/02/07 14:23:21 digulla Exp $
  2. TOP=../..
  3.  
  4. include $(TOP)/config/make.cfg
  5.  
  6. AMIGADIR=$(TOP)/amiga
  7.  
  8. INCLUDES = $(wildcard *.h */*.h)
  9. DEST_INCLUDES = $(foreach f,$(INCLUDES),$(INCDIR)/$(f))
  10.  
  11. all: setup
  12.  
  13. os-include: $(DEST_INCLUDES)
  14.  
  15. $(INCDIR)/%.h: %.h
  16.     $(CP) $< $@
  17.  
  18. setup: make-dirs os-include
  19.  
  20. make-dirs:
  21.     @if [ ! -d $(INCDIR) ]; then $(MKDIR) $(INCDIR) ; else true ; fi
  22.     @if [ ! -d $(INCDIR)/aros ]; then $(MKDIR) $(INCDIR)/aros ; else true ; fi
  23.     @if [ ! -d $(INCDIR)/clib ]; then $(MKDIR) $(INCDIR)/clib ; else true ; fi
  24.     @if [ ! -d $(INCDIR)/defines ]; then $(MKDIR) $(INCDIR)/defines ; else true ; fi
  25.     @if [ ! -d $(INCDIR)/dos ]; then $(MKDIR) $(INCDIR)/dos ; else true ; fi
  26.     @if [ ! -d $(INCDIR)/exec ]; then $(MKDIR) $(INCDIR)/exec ; else true ; fi
  27.     @if [ ! -d $(INCDIR)/graphics ]; then $(MKDIR) $(INCDIR)/graphics ; else true ; fi
  28.     @if [ ! -d $(INCDIR)/intuition ]; then $(MKDIR) $(INCDIR)/intuition ; else true ; fi
  29.     @if [ ! -d $(INCDIR)/pragmas ]; then $(MKDIR) $(INCDIR)/pragmas ; else true ; fi
  30.     @if [ ! -d $(INCDIR)/proto ]; then $(MKDIR) $(INCDIR)/proto ; else true ; fi
  31.     @if [ ! -d $(INCDIR)/utility ]; then $(MKDIR) $(INCDIR)/utility ; else true ; fi
  32.  
  33. clean:
  34.     -$(RM) $(INCDIR)
  35.