erebus

diff liberebus/Makefile @ 4:93894c232d65

more changes across the board
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 29 Apr 2014 07:38:40 +0300
parents 474a0244f57d
children d15ee526daa6
line diff
     1.1 --- a/liberebus/Makefile	Mon Apr 28 15:44:59 2014 +0300
     1.2 +++ b/liberebus/Makefile	Tue Apr 29 07:38:40 2014 +0300
     1.3 @@ -27,6 +27,9 @@
     1.4  
     1.5  $(lib_so): $(obj)
     1.6  	$(CXX) -o $@ $(shared) $(obj) $(LDFLAGS)
     1.7 +	[ -n "$(devlink)" ] && \
     1.8 +		rm -f $(soname) $(devlink) && \
     1.9 +		ln -s $@ $(soname) && ln -s $(soname) $(devlink) || true
    1.10  
    1.11  $(lib_a): $(obj)
    1.12  	$(AR) rcs $@ $(obj)
    1.13 @@ -38,4 +41,4 @@
    1.14  
    1.15  .PHONY: clean
    1.16  clean:
    1.17 -	rm -f $(obj) $(lib_so) $(lib_a)
    1.18 +	rm -f $(obj) $(lib_so) $(lib_a) $(soname) $(devlink)