7 datarootdir
= $(prefix)/share
8 datadir = $(datarootdir
)
9 mandir = $(datarootdir
)/man
10 man1dir = $(mandir)/man1
13 INSTALL_D
= install -d
14 INSTALL_M
= install -c
-m
444
28 Config
::Tiny WWW
::Curl Tk Tk
::Tree Tk
::DialogBox HTML
::TokeParser \
29 XML
::RSS
::LibXML URI
::Escape HTML
::Strip Crypt
::PasswdMD5 Crypt
::Twofish \
32 Clipboard Tk
::FontDialog
35 ifeq ($(WITH_CHECK
),yes
)
36 @echo
== Required Perl modules
:
37 @for m in
$(MODULES
); \
39 result
=`$(PERL) -M$$m -e "print 'yes'" 2>/dev/null || echo no`;\
40 echo
"$$m ...$$result"; \
42 @echo
== Optional Perl modules
:
43 @for m in
$(MODULES_OPTIONAL
); \
45 result
=`$(PERL) -M$$m -e "print 'yes'" 2>/dev/null || echo no`;\
46 echo
"$$m ...$$result"; \
49 @echo Disable module checking.
52 .PHONY
: install uninstall
54 SCRIPTS
= clivefeed clivescan clivepass
57 $(INSTALL_D
) $(DESTDIR
)$(bindir)
58 @for s in
$(SCRIPTS
); \
60 echo
"$(INSTALL) $$s $(DESTDIR)$(bindir)/$$s"; \
61 $(INSTALL
) $$s $(DESTDIR
)$(bindir)/$$s; \
63 ifeq ($(WITH_MAN
),yes
)
64 $(INSTALL_D
) $(DESTDIR
)$(man1dir)
65 @for s in
$(SCRIPTS
); \
67 echo
"$(INSTALL_M) $$s.1 $(DESTDIR)$(man1dir)/$$s.1"; \
68 $(INSTALL_M
) $$s.1 $(DESTDIR
)$(man1dir)/$$s.1; \
73 # TODO: Merge these two loops
74 @for s in
$(SCRIPTS
); \
76 echo
"$(RM) $(DESTDIR)$(bindir)/$$s"; \
77 $(RM
) $(DESTDIR
)$(bindir)/$$s; \
79 ifeq ($(WITH_MAN
),yes
)
80 @for s in
$(SCRIPTS
); \
82 echo
"$(RM) $(DESTDIR)$(man1dir)/$$s.1"; \
83 $(RM
) $(DESTDIR
)$(man1dir)/$$s.1; \
89 @for s in
$(SCRIPTS
); \
91 release
=`$(AWK) '/constant VERSION/ {print \$$5}' $$s | \
93 echo
$(POD2MAN
) -c
"$$s manual" -n
$$s \
94 -s
1 -r
$$release $$s.pod
$$s.1; \
95 $(POD2MAN
) -c
"$$s manual" -n
$$s \
96 -s
1 -r
$$release $$s.pod
$$s.1; \