#
#ident  "@(#)Makefile 1.5     97/04/30 SMI"
#
# Copyright 1996 Sun Microsystems, Inc. All Rights Reserved
#

# include global definitions
include $(SRC)/Makefile.master

TOOLSDIR = $(COMMON_ROOT)/tools/bin

all :=          TARGET= all
install :=      TARGET= install
check :=        TARGET= check
clean :=        TARGET= clean
clobber :=      TARGET= clobber
lint :=         TARGET= lint

#####
SUBDIRS= mkisofs-1.11

TOOLSFILES = makecd

TOOLSPROG = $(TOOLSFILES:%=$(TOOLSDIR)/%)

all install: copy $(TOOLSPROG) $(SUBDIRS)

copy:
	@for i in $(TOOLSFILES); do \
		if [ ! -f $$i ];then \
			echo "copying $$i.$$ARCH to $$i"; \
			cp $$i.$${ARCH} $$i; \
		fi;\
	done

$(SUBDIRS): FRC
	cd $@; pwd; $(MAKE) $(TARGET)

FRC:

$(TOOLSDIR)/%: %
	$(INS.exec)

clobber: clean
	$(RM) $(TOOLSPROG)

clean: $(SUBDIRS)
	$(RM) $(TOOLSFILES)

.KEEP_STATE:

