summaryrefslogtreecommitdiffstats
path: root/lua/Makefile
blob: c9e7b4342ff5a547f0c450b441a8dc04f24fdba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
include ../config.mk

LUA_DIST=mvc.lua\

EXTRA_DIST=Makefile
DISTFILES=$(LUA_DIST) $(EXTRA_DIST)

install_dir=$(DESTDIR)/$(luadir)
dist_dir=$(DISTDIR)/$(notdir $(PWD))

phony+=all
all:

phony+=clean
clean:

phony+=distdir
distdir: $(DISTFILES)
	mkdir -p "$(dist_dir)"
	for i in $(DISTFILES); do\
		dest=`dirname "$(dist_dir)/$$i"`;\
		mkdir -p "$$dest";\
		cp "$$i" "$$dest";\
	done

phony+=install
install:
	mkdir -p $(install_dir)
	for i in $(LUA_DIST); do\
		dest=`dirname "$(install_dir)/$$i"`;\
		mkdir -p "$$dest";\
		cp "$$i" "$$dest";\
	done

.PHONY: $(phony)