Adjust OpenCSW & pkgsrc paths, drop CONFIG=MEDIUM (Alexander Harm)..
[s-mailx.git] / makefile
blob32b7140ce92b6364566b6961ee422705484dfaf9
1 #@ Makefile for S-nail.
2 #@ Adjustments have to be made in make.rc -- or on the command line.
3 #@ See the file INSTALL if you need help.
5 .PHONY: ohno tangerine all config build install uninstall clean distclean test \
6 devel odevel
7 SRCDIR=./
9 ohno: build
10 tangerine: config build test install
11 all: config build
13 config:
14 @$(_prego)
15 build:
16 @$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
17 install packager-install: build
18 @$(_prestop);
19 LC_ALL=C $${MAKE} -f mk-config.mk DESTDIR="$(DESTDIR)" install
20 uninstall:
21 @$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk uninstall
23 clean:
24 @$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk clean
25 distclean:
26 @$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk distclean
28 test:
29 @$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) test
31 devel:
32 @CONFIG=DEVEL; export CONFIG; $(_prego); $(_prestop);\
33 LC_ALL=C $${MAKE} -f mk-config.mk _update-version &&\
34 LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
35 odevel:
36 @CONFIG=ODEVEL; export CONFIG; $(_prego); $(_prestop);\
37 LC_ALL=C $${MAKE} -f mk-config.mk _update-version &&\
38 LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
39 d-b:
40 @$(_prestop);\
41 LC_ALL=C $${MAKE} -f mk-config.mk _update-version &&\
42 LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
44 d-gettext:
45 cd "$(SRCDIR)" &&\
46 LC_ALL=C xgettext --sort-by-file --strict --add-location \
47 --from-code=UTF-8 --keyword --keyword=_ --keyword=N_ \
48 --add-comments=I18N --foreign-user \
49 -o messages.pot *.c *.h
51 _prego = SHELL="$(SHELL)" MAKE="$(MAKE)" SRCDIR="$(SRCDIR)" \
52 CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
53 $(SHELL) "$(SRCDIR)"make-config.sh || exit 1
54 _prestop = if [ -f ./mk-config.mk ]; then :; else \
55 echo 'Program not configured, nothing to do';\
56 echo 'Use one of the targets: config, all, tangerine';\
57 exit 1;\
58 fi;\
59 < ./mk-config.ev read __ev__; eval $${__ev__}; unset __ev__
61 # s-mk-mode