
all : $(shell ls *.h | sed s/.h/-h/ | sed  s/^/demo-/ )

demo-%-h : %.h Makefile-sparse-demo
	@rm -f $@ $@.cpp
	@ln -s $< $@.cpp
	$(CXX) $(CXXFLAGS) -g -DGNU_gama_sparse_demo -Wall -pedantic -o $@ $@.cpp
	@rm -f $@.cpp

clean:
	@rm -fv demo-*



