MOUNT_POINT = /media/sda3 BASE_DIR = /home/nano LOCAL_BASE = $(MOUNT_POINT)$(BASE_DIR) FILES = nano.music loading.sprite \ ball17g.sprite ball17gc.sprite ball17gy.sprite \ ball9a.sprite ball9b.sprite ball9c.sprite \ ball33a.sprite ball33b.sprite \ frame320.raw # intro FILES += nanologo.sprite sparkle.sprite # planet FILES += earthmap.sprite stars.sprite # landscape FILES += snowmap.sprite snow_z.sprite lsdecal.sprite # wobble FILES += animalb.sprite animalbg.sprite # tunnel FILES += tunnel.sprite cyte.sprite # cells FILES += cell_background.sprite cell_scale.sprite FILES += cell_small.sprite cell_medium.sprite cell_big.sprite # greetings FILES += greetbg.sprite FILES += t_drg.sprite t_mds.sprite t_plastic.sprite t_misc.sprite FILES += water.mol cross.mol ethanol.mol cnt.mol buckyball.mol cubic.mol # heightfield FILES += heightmap.sprite colormap.sprite benzol.sprite # wilson FILES += credits.sprite # atoms FILES += atombg.sprite FILES += core_h.mol core_he.mol core_c.mol core_si.mol core_au.mol core_u.mol # collide FILES += detector.sprite rohr.sprite numbers.sprite # final FILES += final.sprite t_kat.sprite aeffchen.mol all: $(FILES) data: $(FILES) compress_music: compress_music.c cc -O -o compress_music compress_music.c %.sprite: %.png convert_sprite.py python2 convert_sprite.py $< %.music: %.wav compress_music ./compress_music $< $@ 64000 %.mol: molecule_generator.py python2 molecule_generator.py $@ %.wav: %.mp3 #sox $< -c 1 -r 32000 $@ resample -ql ffmpeg -y -i $< -ac 1 -ar 32000 $@ clean: rm -f *.sprite *.music *.mol *.wav adpcm_output.* compress_music install: mkdir -p $(LOCAL_BASE)/data cp $(FILES) $(LOCAL_BASE)/data release: all cp $(FILES) ../$(RELEASEDIR)/data/ .PHONY: all data clean install release