-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (52 loc) · 1.22 KB
/
Makefile
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
# This Makefile is for the qtc::net extension to perl.
#
PREFIX=/usr/local
DATADIR=/var/spool/qtc
CGIDIR=$(PREFIX)/share/qtc/cgi-bin
ETCDIR=/etc/qtc
INITDIR=/etc/init.d
all: Makefile.PL.mk
make -f Makefile.PL.mk
# create perl makefile
Makefile.PL.mk: Makefile.PL
perl $<
install: Makefile.PL.mk
make -f Makefile.PL.mk install
if [ ! -d $(CGIDIR) ] ;\
then \
mkdir -p $(CGIDIR); \
fi
cp cgi-bin/*.cgi $(CGIDIR)
if [ ! -d $(ETCDIR) ] ;\
then \
mkdir -p $(ETCDIR); \
fi
for etcfile in etc/qtc/* ; \
do \
if [ ! -f $(ETCDIR)/`basename $$etcfile` ] ; \
then \
cp $$etcfile $(ETCDIR) ; \
chown root:root $(ETCDIR)/`basename $$etcfile` ; \
else \
cp $$etcfile $(ETCDIR)/`basename $$etcfile`.dist ; \
chown root:root $(ETCDIR)/`basename $$etcfile`.dist ; \
fi ; \
done
for service in etc/init.d/* ; \
do \
if [ ! -f $(INITDIR)/`basename $$service` ] ; \
then \
cp $$service $(INITDIR) ; \
chown root:root $(INITDIR)/`basename $$service` ; \
else \
cp $$service $(INITDIR)/`basename $$service`.dist ; \
chown root:root $(INITDIR)/`basename $$service`.dist ; \
fi ; \
done
clean:
rm -f Makefile.PL.mk
rm -f MYMETA.yml
rm -f MYMETA.json
rm -f pm_to_blib
rm -f deps
rm -f Makefile.old