summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
blob: bad3ea5eff393d32ed2ac110443875d7f35f0cc4 (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
55
56
57
include ../config.mk

LIB_DIST=fs.lua\
	html.lua\
	date.lua\
	debugs.lua\
	format.lua\
	menubuilder.lua\
	procps.lua\
	privsep.lua\
	session.lua\
	validator.lua\
	web_elements.lua\
	authenticator.lua\
	authenticator-plaintext.lua\
	daemoncontrol.lua\
	getopts.lua\
	roles.lua\
	processinfo.lua\
	viewfunctions.lua\
	controllerfunctions.lua\
	modelfunctions.lua\
	cfe.lua\
	apk.lua\

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

install_dir=$(DESTDIR)/$(acflibdir)
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 $(LIB_DIST); do\
		dest=`dirname "$(install_dir)/$$i"`;\
		mkdir -p "$$dest";\
		cp "$$i" "$$dest";\
	done


.PHONY: $(phony)