lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Jul 17, 2012 at 11:15 PM, William Ahern
<william@25thandclement.com> wrote:
> On Tue, Jul 17, 2012 at 11:25:27AM -0700, Sam Roberts wrote:
>> william@25thandclement.com wrote:
>>
>> >>> The better alternative to autoconf is usually nothing, IMO.
>>
>> Clearly, I don't agree, or I wouldn't be looking for one :-)
>>
>> This makefile approach is crap:  https://github.com/sam-github/pcap-lua
>
> That's not too bad.

If it was written in mk-configure, i'd look like the following (not
tested, only idea is demonstrated).

----------------------------------------
LUA_MODULES = pcapx.lua # .lua module
LUA_CMODULE =  pcap # Lua module written in C (pcap.c)
SCRIPTS = pcap-recode pcap-dump pcap-split

WARNS = 4 # highest possible compiler's warning level

all: README.txt
README.txt: README.txt.in pcap.c
	cp README.txt.in $@
	luadoc pcap.c >> $@

test:
   ...
doc:
   ...

.include <mkc.mk>
----------------------------------------
That's it.