make-config.in: complete path (leftover of [807f64e2], 2015-12-26!)
[s-mailx.git] / makefile
blob99eed54561fc26cab8b76f12bd517d74c4670b68
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 citron \
6 all config build install uninstall clean distclean test \
7 devel odevel
9 CWDDIR=
10 SRCDIR=
12 ohno: build
13 tangerine: config build test install
14 citron: config build install
15 all: config build
17 config:
18 @$(_prego)
19 build:
20 @$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
21 install packager-install: build
22 @$(_prestop);\
23 LC_ALL=C $${MAKE} -f mk-config.mk DESTDIR="$(DESTDIR)" install
24 uninstall:
25 @$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk uninstall
27 clean:
28 @$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk clean
29 distclean:
30 @$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk distclean
32 devel:
33 @CONFIG=DEVEL; export CONFIG; $(_prego); $(_prestop);\
34 LC_ALL=C $${MAKE} -f mk-config.mk _update-version &&\
35 LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
36 odevel:
37 @CONFIG=ODEVEL; export CONFIG; $(_prego); $(_prestop);\
38 LC_ALL=C $${MAKE} -f mk-config.mk _update-version &&\
39 LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
40 d-b:
41 @$(_prestop);\
42 LC_ALL=C $${MAKE} -f mk-config.mk _update-version &&\
43 LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
44 d-v:
45 @$(_prestop);\
46 LC_ALL=C $${MAKE} -f mk-config.mk _update-version
48 # The test should inherit the user runtime environment!
49 test:
50 @$(__prestop); cd .obj && LC_ALL=C $(MAKE) -f mk-config.mk test
52 d-okeys:
53 perl make-okey-map.pl
54 d-okeys-nv:
55 perl make-okey-map.pl noverbose
56 d-tcaps:
57 perl make-tcap-map.pl
58 d-tcaps-nv:
59 perl make-tcap-map.pl noverbose
60 d-errors:
61 $(SHELL) make-errors.sh
62 d-errors-nv:
63 $(SHELL) make-errors.sh noverbose
64 d-gettext:
65 cd "$(SRCDIR)" &&\
66 LC_ALL=C xgettext --sort-by-file --strict --add-location \
67 --from-code=UTF-8 --keyword --keyword=_ --keyword=N_ \
68 --add-comments=I18N --foreign-user \
69 -o messages.pot *.c *.h
71 _prego = if CWDDIR="$(CWDDIR)" SRCDIR="$(SRCDIR)" \
72 SHELL="$(SHELL)" MAKE="$(MAKE)" CC="$(CC)" \
73 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
74 $(SHELL) "$(SRCDIR)"make-config.sh "$(MAKEFLAGS)"; then :;\
75 else exit 1; fi
76 __prestop = if [ -f .obj/mk-config.mk ]; then :; else \
77 echo 'Program not configured, nothing to do';\
78 echo 'Use one of the targets: config, all, tangerine, citron';\
79 exit 0;\
81 _prestop = $(__prestop); cd .obj && . ./mk-config.ev
83 # s-mk-mode