diff --git a/Makefile b/Makefile index 1cb540bf..d7a98d4b 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,8 @@ VERSION=0.2.0 # Define the contain of the distribution tarball # TODO: Get theses lists from GIT itself. HEADER=m-algo.h m-array.h m-atomic.h m-bitset.h m-bptree.h m-buffer.h m-core.h m-deque.h m-dict.h m-genint.h m-i-list.h m-i-shared.h m-list.h m-mempool.h m-mutex.h m-prioqueue.h m-rbtree.h m-shared.h m-snapshot.h m-string.h m-tuple.h m-variant.h m-worker.h -DOC1=depend.png LICENSE README.md -DOC2=doc/API.txt doc/Container.html doc/Container.ods doc/DEV.md doc/ISSUES.org +DOC1=LICENSE README.md +DOC2=doc/API.txt doc/Container.html doc/Container.ods doc/DEV.md doc/ISSUES.org doc/depend.png doc/oplist.png EXAMPLE=example/ex-array01.c example/ex-array04.c example/ex-dict02.c example/ex-grep01.c example/ex-multi01.c example/ex-rbtree01.c example/ex-array02.c example/ex-buffer01.c example/ex-dict03.c example/ex-list01.c example/ex-multi02.c example/Makefile example/ex-array03.c example/ex-dict01.c example/ex-dict04.c example/ex-mph.c example/ex-multi03.c TEST=tests/coverage.h tests/test-malgo.c tests/test-mbptree.c tests/test-mdeque.c tests/test-milist.c tests/test-mmutex.c tests/test-mshared.c tests/test-mtuple.c tests/test-obj.h tests/tgen-mdict.c tests/tgen-openmp.c tests/wip-mregister.c tests/dict.txt tests/test-marray.c tests/test-mbuffer.c tests/test-mdict.c tests/test-mlist.c tests/test-mprioqueue.c tests/test-msnapshot.c tests/test-mvariant.c tests/tgen-bitset.c tests/tgen-mlist.c tests/tgen-queue.c tests/Makefile tests/test-mbitset.c tests/test-mcore.c tests/test-mgenint.c tests/test-mmempool.c tests/test-mrbtree.c tests/test-mstring.c tests/test-mworker.c tests/tgen-marray.c tests/tgen-mstring.c tests/tgen-shared.c @@ -32,7 +32,7 @@ check: cd example && $(MAKE) all html: doc -doc: README.md depend.png +doc: README.md doc/depend.png markdown < README.md > README.html clean: @@ -49,10 +49,10 @@ distclean: clean depend: cd tests && $(MAKE) depend -depend.png: $(HEADER) +doc/depend.png: $(HEADER) (echo "digraph g { " ; for i in *.h ; do list=$$(grep "include \"" $$i |cut -f2 -d\") ; for j in $$list ; do echo "\"$$i\" -> \"$$j\" ;" ; done ; done ; echo "}" )> depend.dot - dot -Tpng depend.dot -o depend.png - optipng -o7 depend.png + dot -Tpng depend.dot -o doc/depend.png + optipng -o7 doc/depend.png dist: $(HEADER) $(DOC1) $(DOC2) $(EXAMPLE) $(TEST) Makefile clean $(MKDIR) '$(PACKAGE)' diff --git a/README.md b/README.md index ecf7d5df..d1d03599 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ In some rare case, the method has to be adapted to the container. Each header can be used separately from others: dependency between headers have been kept to the minimum. -![Dependence between headers](https://raw.githubusercontent.com/P-p-H-d/mlib/master/depend.png) +![Dependence between headers](https://raw.githubusercontent.com/P-p-H-d/mlib/master/doc/depend.png) Build & Installation -------------------- diff --git a/depend.png b/depend.png deleted file mode 100644 index 6c2539c4..00000000 Binary files a/depend.png and /dev/null differ diff --git a/doc/depend.png b/doc/depend.png new file mode 100644 index 00000000..3b2d2332 Binary files /dev/null and b/doc/depend.png differ