Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 54 lines (41 sloc) 1.451 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

CHUGINS=ABSaturator Bitcrusher KasFilter MagicSine
CHUGS=$(foreach CHUG,$(CHUGINS),$(CHUG)/$(CHUG).chug)

INSTALL_DIR=/usr/lib/chuck

ifneq ($(CK_TARGET),)
.DEFAULT_GOAL:=$(CK_TARGET)
ifeq ($(MAKECMDGOALS),)
MAKECMDGOALS:=$(.DEFAULT_GOAL)
endif
endif

osx: $(CHUGS)
linux: $(CHUGS)
win32: $(CHUGS)

$(CHUGS):
make -C $(dir $@) $(MAKECMDGOALS)

clean:
rm -rf $(addsuffix /*.o,$(CHUGINS)) $(CHUGS)

install: $(CHUGS)
mkdir -p $(INSTALL_DIR)
cp -rf $(CHUGS) $(INSTALL_DIR)

DATE=$(shell date +"%Y-%m-%d")
EXAMPLES=Bitcrusher/Bitcrusher-test.ck MagicSine/MagicSine-test.ck \
ABSaturator/ABSaturator-test.ck KasFilter/README-KasFilter.ck

bin-dist-osx:
make osx
mkdir -p chugins-mac-$(DATE)/chugins/
mkdir -p chugins-mac-$(DATE)/examples/
cp -f notes/README-mac.txt chugins-mac-$(DATE)/
cp -rf $(EXAMPLES) chugins-mac-$(DATE)/examples/
cp -rf $(CHUGS) chugins-mac-$(DATE)/chugins/
tar czf chugins-mac-$(DATE).tgz chugins-mac-$(DATE)
rm -rf chugins-mac-$(DATE)/

WIN_CHUGS=$(foreach CHUG,$(CHUGINS),$(CHUG)/Release/$(CHUG).chug)
    
bin-dist-win32:
mkdir -p chugins-windows-$(DATE)/chugins/
mkdir -p chugins-windows-$(DATE)/examples/
cp -f notes/README-windows.txt chugins-windows-$(DATE)/
cp -rf $(EXAMPLES) chugins-windows-$(DATE)/examples/
cp -rf $(WIN_CHUGS) chugins-windows-$(DATE)/chugins/
rm -rf chugins-windows-$(DATE).zip
zip -q -9 -r -m chugins-windows-$(DATE).zip chugins-windows-$(DATE)
rm -rf chugins-windows-$(DATE)/

Something went wrong with that request. Please try again.