diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-03-31 19:34:55 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-03-31 19:34:55 +0300 |
commit | e958336d6ca387cbd0dfdbe193b2d39f28d435af (patch) | |
tree | c29b15feddde01d75b4347543503f67840a71446 /Makefile | |
parent | 8e0c7cb2607622cf601c90e691ef7ef4380779f4 (diff) | |
download | awall-e958336d6ca387cbd0dfdbe193b2d39f28d435af.tar.bz2 awall-e958336d6ca387cbd0dfdbe193b2d39f28d435af.tar.xz |
remove Lua version number from source file
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -1,11 +1,11 @@ # Installer Makefile for Alpine Wall -# Copyright (C) 2012-2013 Kaarle Ritvanen +# Copyright (C) 2012-2014 Kaarle Ritvanen # See LICENSE file for license details ROOT_DIR := / LUA_VERSION := 5.1 -poldir := usr/share/awall +resdir := usr/share/awall confdir := etc/awall all: install @@ -34,17 +34,21 @@ files += $(2) endef $(eval $(call copy,awall,usr/share/lua/$(LUA_VERSION)/awall,lua)) -$(eval $(call copy,json,$(poldir)/mandatory,json)) +$(eval $(call copy,json,$(resdir)/mandatory,json)) $(eval $(call rename,awall-cli,usr/sbin/awall,755)) -$(eval $(call rename,sample-policy.json,$(poldir)/sample/sample-policy.json,644)) +$(eval $(call rename,sample-policy.json,$(resdir)/sample/sample-policy.json,644)) $(eval $(call mkdir,$(confdir))) $(eval $(call mkdir,$(confdir)/optional)) $(eval $(call mkdir,$(confdir)/private)) -$(eval $(call mkdir,$(poldir)/optional)) -$(eval $(call mkdir,$(poldir)/private)) +$(eval $(call mkdir,$(resdir)/optional)) +$(eval $(call mkdir,$(resdir)/private)) -install: $(foreach f,$(files),$(ROOT_DIR)/$(f)) +$(ROOT_DIR)/$(resdir)/modules: + install -d $(dir $@) + ln -s ../lua/$(LUA_VERSION)/awall/modules $@ + +install: $(foreach f,$(files),$(ROOT_DIR)/$(f)) $(ROOT_DIR)/$(resdir)/modules .PHONY: all |