-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (37 loc) · 1.39 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
PERL?=/usr/bin/perl
PREFIX?=/usr/local/mailnews
OWNER?=news
GROUP?=news
.PHONY: default clean test-perls
default:
@echo Say make install, or clean
clean:
rm -rf bin
rm -f -- *~
test-perls:
for D in cmd.pl feeder.pl lister.pl sdba.pl newgrp.pl \
mn_config.pm mn_subs.pm mn_mime.pm mn_intl.pm; \
do \
perl -I. -wc -Mstrict "$$D"; \
done
.PHONY: install-dirs install-perls install-conf install-thunks install
install-dirs:
mkdir -p "$(PREFIX)"
install -d -m 0755 -o "$(OWNER)" -g "$(GROUP)" "$(PREFIX)/bin"
install -d -m 0755 -o "$(OWNER)" -g "$(GROUP)" "$(PREFIX)/etc"
install -d -m 0755 -o "$(OWNER)" -g "$(GROUP)" "$(PREFIX)/lib"
install -d -m 0755 -o "$(OWNER)" -g "$(GROUP)" "$(PREFIX)/lib/mailnews"
install-perls:
install -c -m 0755 -o "$(OWNER)" -g "$(GROUP)" \
cmd.pl feeder.pl lister.pl sdba.pl newgrp.pl \
mn_subs.pm mn_mime.pm mn_intl.pm \
"$(PREFIX)/lib/mailnews/"
install-conf:
install -c -m 0600 -o "$(OWNER)" -g "$(GROUP)" mn_config.pm "$(PREFIX)/etc/"
install-thunks:
sh ./make_thunk.sh "$(OWNER)" "$(GROUP)" "$(PERL)" "$(PREFIX)" cmd
sh ./make_thunk.sh "$(OWNER)" "$(GROUP)" "$(PERL)" "$(PREFIX)" feeder
sh ./make_thunk.sh "$(OWNER)" "$(GROUP)" "$(PERL)" "$(PREFIX)" lister
sh ./make_thunk.sh "$(OWNER)" "$(GROUP)" "$(PERL)" "$(PREFIX)" sdba
sh ./make_thunk.sh "$(OWNER)" "$(GROUP)" "$(PERL)" "$(PREFIX)" newgrp
install: install-dirs install-perls install-conf install-thunks