summaryrefslogtreecommitdiffstats
path: root/app/Makefile
blob: b71b10f9dc8347f47f67b2834d7ad294210ef4b1 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
include ../config.mk

APP_DIST= \
	acf-util/logon-controller.lua \
	acf-util/logon-html.lsp \
	acf-util/logon-model.lua \
	acf-util/logon-status-html.lsp \
	acf-util/roles-controller.lua \
	acf-util/roles-getlist-html.lsp \
	acf-util/roles-model.lua \
	acf-util/roles-read-html.lsp \
	acf-util/password-controller.lua \
	acf-util/password-html.lsp \
	acf-util/password-status-html.lsp \
	acf-util/password.menu \
	acf_www-controller.lua\
	cfgfile-model.lua\
	service-model.lua\
	menuhints.menu\
	template-html.lsp\
	welcome-controller.lua\
	welcome-html.lsp

EXTRA_DIST=README Makefile
DISTFILES=$(APP_DIST) $(EXTRA_DIST)

install_dir=$(DESTDIR)/$(appdir)

phony+=all
all:

phony+=clean
clean:

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

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


.PHONY: $(phony)