diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-25 20:20:07 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-25 20:43:18 +0200 |
commit | a3241d10979b75b252d126d46fcee1df7cd9d255 (patch) | |
tree | b8b73531565fa6911c0a46dcb7c1888bd9452894 /Makefile | |
download | luarc-master.tar.bz2 luarc-master.tar.xz |
This is a proof of concept
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..613bb9d --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ + +LIBS=-llua + +scriptdir=/etc/rc.d +sbindir=/sbin +rcluadir=/lib/rc/lua + +INSTALL=install + +rcscripts=rc.d/example +rclualibs=lib/e.lua + +runlscript: runlscript.c + $(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) $< -o $@ + + +install: runlscript $(rcscripts) + $(INSTALL) -d $(DESTDIR)$(scriptdir) $(DESTDIR)$(sbindir) \ + $(DESTDIR)$(rcluadir) + $(INSTALL) -m 755 runlscript $(DESTDIR)$(sbindir) + $(INSTALL) -m 755 $(rcscripts) $(DESTDIR)$(scriptdir) + $(INSTALL) -m 644 $(rclualibs) $(DESTDIR)$(rcluadir) + |