Makefile
a2a334f1
 
d1d53858
 modules = $(filter-out $(wildcard Makefile* README doc), \
37abd537
 			$(wildcard *) )
fd63f5df
 
 TAR ?= tar
 NAME=sems
 RELEASE=0.10.0-rc1
 
a2a334f1
 .PHONY: all
37abd537
 all: modules
a2a334f1
 
 .PHONY: clean
 clean:
37abd537
 	-@rm -f *.so
 	-@for r in $(modules) "" ; do \
 		if [ -n "$$r" ]; then \
 			echo "" ; \
 			echo "" ; \
 			$(MAKE) -C $$r clean ; \
 		fi ; \
 	done
a2a334f1
 
 .PHONY: modules
 modules:
37abd537
 	-@for r in $(modules) "" ; do \
 		if [ -n "$$r" ]; then \
 			echo  "" ; \
 			echo  "" ; \
 			$(MAKE) -C $$r all; \
 		fi ; \
 	done 
 
 .PHONY: install
 install:
 	-@for r in $(modules) "" ; do \
 		if [ -n "$$r" ]; then \
 			echo "" ; \
 			echo "" ; \
 			$(MAKE) -C $$r install; \
a2a334f1
 		fi ; \
 	done
fd63f5df
 
 .PHONY: dist
 dist: tar
 
 .PHONY: tar
 tar: 
 	$(TAR) -C .. \
 		--exclude=$(notdir $(CURDIR))/tmp \
 		--exclude=core/$(notdir $(CURDIR))/tmp \
 		--exclude=.svn* \
 		--exclude=.\#* \
 		--exclude=*.[do] \
 		--exclude=*.la \
 		--exclude=*.lo \
 		--exclude=*.so \
 		--exclude=*.il \
 		--exclude=*.gz \
 		--exclude=*.bz2 \
 		--exclude=*.tar \
 		--exclude=*~ \
 		-cf - $(notdir $(CURDIR)) | \
 			(mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
 			    cd tmp/_tar1; $(TAR) -xf - ) && \
 			    mv tmp/_tar1/$(notdir $(CURDIR)) \
 			       tmp/_tar2/"$(NAME)-$(RELEASE)" && \
 			    (cd tmp/_tar2 && $(TAR) \
 			                    -zcf ../../"$(NAME)-$(RELEASE)".tar.gz \
 			                               "$(NAME)-$(RELEASE)" ) ; \
 			    rm -rf tmp