adopted to use VC2008 and Lua 5.1
[luagraph.git] / makefile
blob35e5c7edd62de22f2fea8b906d739384e592c4e6
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.*
15 rm -rf outdir
17 .PHONY: install uninstall install-doc uninstall-doc
19 install: all
20 mkdir -p $(INSTALL_SHARE) $(INSTALL_LIB)/graph
21 $(INSTALL_DATA) graph.lua $(INSTALL_SHARE)
22 cd src && $(INSTALL_COPY) $(LUAGRAPH_SO) $(INSTALL_LIB)/graph/core.$(EXT)
24 uninstall:
25 rm -rf $(INSTALL_SHARE)/graph.lua
26 rm -rf $(INSTALL_LIB)/graph
28 install-doc:
29 mkdir -p $(INSTALL_DOC)/html
30 cd doc && $(INSTALL_COPY) * $(INSTALL_DOC)/html
32 uninstall-doc:
33 rm -rf $(INSTALL_DOC)
35 .PHONY: test testd
37 test:
38 $(LUABIN) test/test.lua
40 testd:
41 $(LUABIN) test/test.lua DEBUG
43 .PHONY: tag tag-git
44 tag: tag-git
46 tag-git:
47 git tag -F latest
50 show::
51 @echo "System shortname: "$(SYSTEM)
53 .PHONY: dist dist-git dist-cvs dist-svn
54 dist: dist-git
56 dist-git:
57 mkdir -p $(EXPORTDIR)
58 git archive --format=tar --prefix=$(DISTNAME)/ HEAD | gzip >$(EXPORTDIR)/$(DISTARCH)