replace README text file by markdown
[luagraph.git] / makefile
blob5f24af9b48b94238244d76ab2c9937fc814f8cf0
1 include config
3 .PHONY: all clean depend uclean
4 all:
5 cd src && $(MAKE) $@
7 clean-win32:
8 rm -rf Release Debug
9 rm -rf $(LUAGRAPH_WIN32).suo
10 rm -rf $(LUAGRAPH_WIN32).ncb
11 rm -rf $(LUAGRAPH_WIN32).sln
12 rm -rf $(LUAGRAPH_WIN32).vcproj.*
14 clean depend:
15 cd src && $(MAKE) $@
17 uclean: clean clean-win32
18 rm -f `find . -name "*~"`
19 rm -f `find . -name "#*"`
20 rm -f graph/core.so $(LUAGRAPH_SO)
21 rm -f out.*
22 rm -rf outdir
24 .PHONY: local-install-win32 install uninstall install-doc uninstall-doc
25 local-install-win32:
26 cp Release/$(LUAGRAPH_WIN32).dll graph/core.dll
28 install: all
29 mkdir -p $(INSTALL_SHARE) $(INSTALL_LIB)/graph
30 $(INSTALL_DATA) graph.lua $(INSTALL_SHARE)
31 cd src && $(INSTALL_COPY) $(LUAGRAPH_SO) $(INSTALL_LIB)/graph/core.$(EXT)
33 uninstall:
34 rm -rf $(INSTALL_SHARE)/graph.lua
35 rm -rf $(INSTALL_LIB)/graph
37 install-doc:
38 mkdir -p $(INSTALL_DOC)/html
39 cd doc && $(INSTALL_COPY) * $(INSTALL_DOC)/html
41 uninstall-doc:
42 rm -rf $(INSTALL_DOC)
44 .PHONY: test testd
46 test:
47 $(LUABIN) test/test.lua
49 testd:
50 $(LUABIN) test/test.lua DEBUG
52 .PHONY: tag tag-git
53 tag: tag-git
55 tag-git:
56 git tag -F latest
59 show::
60 @echo "System shortname: "$(SYSTEM)
62 .PHONY: dist dist-git dist-cvs dist-svn
63 dist: dist-git
65 dist-git:
66 mkdir -p $(EXPORTDIR)
67 git archive --format=tar --prefix=$(DISTNAME)/ HEAD | gzip >$(EXPORTDIR)/$(DISTARCH)