home *** CD-ROM | disk | FTP | other *** search
Makefile | 1997-01-28 | 705 b | 35 lines |
- # $Id: makefile,v 1.5 1997/01/28 13:51:13 digulla Exp $
- TOP=..
-
- include $(TOP)/config/make.cfg
-
- ifeq ($(FLAVOUR),native)
- SUBDIRS=include clib
- else
- SUBDIRS=include aros alib clib vcpp vbcc
- endif
- TARGET=all
-
- all: subdirs
-
- clean:
- @for dir in $(SUBDIRS) ; do \
- echo "Cleaning in $(CURDIR)/$$dir..." ; \
- ( cd $$dir ; \
- $(MAKE) $(MFLAGS) TOP="$(TOP)/.." CURDIR="$(CURDIR)/$$dir" \
- clean ) ; \
- done
-
- setup:
- @$(MAKE) $(MFLAGS) subdirs TARGET=setup
-
- subdirs:
- @for dir in $(SUBDIRS) ; do \
- echo "Making $(TARGET) in $(CURDIR)/$$dir..." ; \
- if ( cd $$dir ; \
- $(MAKE) $(MFLAGS) TOP="$(TOP)/.." CURDIR="$(CURDIR)/$$dir" \
- $(TARGET) ) ; \
- then true ; else exit 1 ; fi ; \
- done
-
-