fixed wrong lib search path in config file
[luagraph.git] / makefile
blob2e004d5e78f4941c87338d34a2c7171fa7caf1be
1 include config
3 .PHONY: all clean depend uclean
4 all:
5 cd src && $(MAKE) $@
7 clean depend:
8 cd src && $(MAKE) $@
10 uclean: clean
11 rm -f `find . -name "*~"`
12 rm -f `find . -name "#*"`
13 rm -f graph/core.so $(LUAGRAPH_SO)
14 rm -f out.*
16 .PHONY: install uninstall install-doc uninstall-doc
18 install: all
19 mkdir -p $(INSTALL_SHARE) $(INSTALL_LIB)/graph
20 $(INSTALL_DATA) graph.lua $(INSTALL_SHARE)
21 cd src && $(INSTALL_COPY) $(LUAGRAPH_SO) $(INSTALL_LIB)/graph/core.$(EXT)
23 uninstall:
24 rm -rf $(INSTALL_SHARE)/graph.lua
25 rm -rf $(INSTALL_LIB)/graph
27 install-doc:
28 mkdir -p $(INSTALL_DOC)/html
29 cd doc && $(INSTALL_COPY) * $(INSTALL_DOC)/html
31 uninstall-doc:
32 rm -rf $(INSTALL_DOC)
34 .PHONY: test testd
35 test:
36 $(LUABIN) test/test.lua
38 testd:
39 $(LUABIN) test/test.lua DEBUG
41 .PHONY: tag tag-git tag-cvs tag-svn
42 tag: tag-git
43 cvs tag -F latest
45 tag-git:
46 git tag -F latest
48 tag-cvs:
49 cvs tag -F latest
51 .PHONY: dist dist-git dist-cvs dist-svn
52 dist: dist-git
54 dist-git:
55 mkdir -p $(EXPORTDIR)
56 git archive --format=tar --prefix=$(DISTNAME)/ HEAD | gzip >$(EXPORTDIR)/$(DISTARCH)
58 dist-cvs:
59 mkdir -p $(EXPORTDIR)/$(DISTNAME)
60 cvs export -r latest -d $(EXPORTDIR)/$(DISTNAME) $(CVSMODULE)
61 cd $(EXPORTDIR); tar -cvzf $(DISTNAME).tar.gz $(DISTNAME)/*
62 rm -rf $(EXPORTDIR)/$(DISTNAME)
64 dist-svn:
65 svn export $(REPOSITORY)/$(SVNMODULE) $(EXPORTDIR)/$(DISTNAME)
66 cd $(EXPORTDIR); tar -cvzf $(DISTARCH) $(DISTNAME)/*
67 rm -rf $(EXPORTDIR)/$(DISTNAME)