-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 774 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 774 Bytes
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
PYTHON ?= python
WGET ?= wget
TAR ?= tar
CP ?= cp
RM ?= rm -f
LIMIT ?= 20000
export LIMIT
model-gztan-speech-music-$(LIMIT).pth model-gztan-speech-music-$(LIMIT).log: samplecnn.py | music_speech
$(PYTHON) -Bu samplecnn.py 2>&1 >>model-gztan-speech-music-$(LIMIT).log
$(CP) model-gztan-speech-music.pth model-gztan-speech-music-$(LIMIT).pth
music_speech: music_speech.tar.gz
[ -d $@ ] || $(TAR) --mode=755 -xf music_speech.tar.gz
music_speech.tar.gz:
$(WGET) -O $@ http://opihi.cs.uvic.ca/sound/$@
.PHONY: clean-model clean distclean
clean-model:
$(RM) -r model-gztan-speech-music.pth opt-gztan-speech-music.pth sched-gztan-speech-music.pth batches-gztan-speech-music.txt
clean: clean-model
$(RM) -r music_speech
distclean: clean
$(RM) -r music_speech.tar.gz