3 .PHONY
: all clean depend uclean
11 rm -f
`find . -name "*~"`
13 .PHONY
: install uninstall install-doc uninstall-doc
16 mkdir
-p
$(INSTALL_SHARE
) $(INSTALL_LIB
)/snmp
17 $(INSTALL_DATA
) snmp.lua
$(INSTALL_SHARE
)
18 $(INSTALL_DATA
) trapd.lua
$(INSTALL_SHARE
)
19 cd src
&& $(INSTALL_COPY
) snmp.
$(EXT
).
$(VERSION
) $(INSTALL_LIB
)/snmp
/core.
$(EXT
)
22 rm -rf
$(INSTALL_SHARE
)/snmp.lua
23 rm -rf
$(INSTALL_SHARE
)/trapd.lua
24 rm -rf
$(INSTALL_LIB
)/snmp
27 mkdir
-p
$(INSTALL_DOC
)/html
28 cd doc
&& $(INSTALL_COPY
) * $(INSTALL_DOC
)/html
36 luarocks
--lua-version
=$(LV
) pack
$(ROCKSPEC
)
38 .PHONY
: test testd testtrap testtrapd testtraponly testtraponlyd
43 $(LUABIN
) test.lua debug
46 $(LUABIN
) -e
"trapyes, informyes = true, true" test_trap.lua
49 $(LUABIN
) -e
"trapyes, informyes = true, true" test_trap.lua debug
52 .PHONY
: tag tag-git tag-cvs tag-svn
56 .PHONY
: dist dist-git dist-cvs dist-svn
59 git archive
--format
=tar --prefix=$(DISTNAME
)/ HEAD | gzip
>$(EXPORTDIR
)/$(DISTARCH
)