Add dist for host, cleanup .svn dirs

This commit is contained in:
simon.kagstrom 2010-02-28 17:37:20 +00:00
parent a8e5921841
commit 844c312792
2 changed files with 16 additions and 0 deletions

View File

@ -76,6 +76,21 @@ objs-host/%.o: %.c
@install -d objs-host/$(dir $<)
@$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< $(ERROR_FILTER)
dist-host: $(BUILD)
rm -rf $@
install -d $@/frodo
install -d $@/frodo/images
install -d $@/frodo/saves
install -d $@/frodo/metadata
install -d $@/frodo/tmp
cp $(TARGET) $@/frodo/
cp -rap themes $@/frodo/themes
cp icon.png $@/frodo/
find $@ -name ".svn" | xargs rm -rf
cd $@ && tar -czf ../frodo-host-bin.tar.gz *
dist: dist-host
$(TARGET): $(OBJS)
@echo LD $@
@$(LD) $(LDFLAGS) -o $@ $+

View File

@ -125,6 +125,7 @@ dist: $(BUILD)
cp -rap themes $@/apps/frodo/themes
cp meta.xml $@/apps/frodo/
cp icon.png $@/apps/frodo/
find $@ -name ".svn" | xargs rm -rf
cd $@ && tar -czf ../frodo-wii-bin.tar.gz *
#---------------------------------------------------------------------------------