mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 22:43:15 -06:00
28 lines
408 B
Makefile
28 lines
408 B
Makefile
#
|
|
# build the propeller tools for linux and Darwin
|
|
#
|
|
UNAME := $(shell uname)
|
|
ifeq ($(UNAME), Linux)
|
|
SUFFIX=linux
|
|
endif
|
|
ifeq ($(UNAME), Darwin)
|
|
SUFFIX=osx
|
|
endif
|
|
|
|
DEST = ../../$(UNAME)
|
|
|
|
all: $(DEST)
|
|
-for i in *.$(SUFFIX) ; do \
|
|
cp $$i $(DEST)/$$(basename $$i .$(SUFFIX)) ; \
|
|
done
|
|
|
|
$(DEST):
|
|
mkdir $(DEST)
|
|
|
|
clobber:
|
|
-for i in *.$(SUFFIX) ; do \
|
|
rm $(DEST)/$$(basename $$i .$(SUFFIX)) ; \
|
|
done
|
|
|
|
clean:
|