coeng

diff Makefile @ 9:49fdb15f1100

added makefile rule to download and unpack the obj file
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 15 Feb 2015 05:23:09 +0200
parents 8cce82794f90
children
line diff
     1.1 --- a/Makefile	Sun Feb 15 05:14:20 2015 +0200
     1.2 +++ b/Makefile	Sun Feb 15 05:23:09 2015 +0200
     1.3 @@ -17,9 +17,18 @@
     1.4  	libgl = -lGL -lGLU -lglut -lGLEW
     1.5  endif
     1.6  
     1.7 +.PHONY: all
     1.8 +all: $(bin) lucy.obj
     1.9 +
    1.10  $(bin): $(obj)
    1.11  	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.12  
    1.13 +lucy.obj: lucy.obj.xz
    1.14 +	xzcat $< >$@
    1.15 +
    1.16 +lucy.obj.xz:
    1.17 +	wget -c mutantstargoat.com/~nuclear/tmp/lucy.obj.xz
    1.18 +
    1.19  -include $(dep)
    1.20  
    1.21  %.d: %.c