Files
RomWBW/Tools/unix/bst/Makefile
Wayne Warthen 39185fa8b3 Linux Permissions
Attempt to fix the permission issue that some users are hitting with the Linux build.
2021-07-11 18:45:41 -07:00

29 lines
430 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)
clobber:
-for i in *.$(SUFFIX) ; do \
rm $(DEST)/$$(basename $$i .$(SUFFIX)) ; \
done
clean: