2 $(CC
) $(CPPFLAGS
) $(CFLAGS
) $(FPIC
) -c
-o
$@
$<
5 rm -f po2lmo parser.so version.lua
*.o
7 po2lmo
: po2lmo.o template_lmo.o
8 $(CC
) $(LDFLAGS
) -o
$@
$^
10 parser.so
: template_parser.o template_utils.o template_lmo.o template_lualib.o
11 $(CC
) $(LDFLAGS
) -shared
-o
$@
$^
14 .
/mkversion.sh
$@
$(LUCI_VERSION
)
16 compile
: parser.so version.lua
19 mkdir
-p
$(DESTDIR
)/usr
/lib
/lua
/luci
/template
20 cp parser.so
$(DESTDIR
)/usr
/lib
/lua
/luci
/template
/parser.so
21 cp version.lua
$(DESTDIR
)/usr
/lib
/lua
/luci
/version.lua