mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 22:23:13 -06:00
The clobber target has been removed and the clean target now does what most people would expect (actually cleans the entire build tree).
24 lines
339 B
Makefile
24 lines
339 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 \
|
|
chmod +x $$i ; \
|
|
cp -p $$i $(DEST)/$$(basename $$i .$(SUFFIX)) ; \
|
|
done
|
|
|
|
$(DEST):
|
|
mkdir $(DEST)
|
|
|
|
clean:
|