makefile:test: pass $(MAKEJOBS)
[s-mailx.git] / makefile
blob973989726531338f974e6a66985e471f2e9ce123
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
8 ohno: build
9 tangerine: config build test install
10 all: config build
12 config:
13 @$(_prego)
14 build:
15 @$(_prestop); LC_ALL=C $${MAKE} -f ./mk.mk $(MAKEJOBS) all
16 install packager-install: build
17 @$(_prestop); LC_ALL=C $${MAKE} -f ./mk.mk DESTDIR="$(DESTDIR)" install
18 uninstall:
19 @$(_prestop); LC_ALL=C $${MAKE} -f ./mk.mk uninstall
21 clean:
22 @$(_prestop); LC_ALL=C $${MAKE} -f ./mk.mk clean
23 distclean:
24 @$(_prestop); LC_ALL=C $${MAKE} -f ./mk.mk distclean
26 test:
27 @$(_prestop); LC_ALL=C $${MAKE} -f ./mk.mk $(MAKEJOBS) test
29 devel:
30 @CONFIG=DEVEL; export CONFIG; $(_prego); $(_prestop);\
31 LC_ALL=C $${MAKE} -f ./mk.mk _update-version &&\
32 LC_ALL=C $${MAKE} -f ./mk.mk $(MAKEJOBS) all
33 odevel:
34 @CONFIG=ODEVEL; export CONFIG; $(_prego); $(_prestop);\
35 LC_ALL=C $${MAKE} -f ./mk.mk _update-version &&\
36 LC_ALL=C $${MAKE} -f ./mk.mk $(MAKEJOBS) all
37 d-b:
38 @$(_prestop); LC_ALL=C $${MAKE} -f ./mk.mk _update-version &&\
39 LC_ALL=C $${MAKE} -f ./mk.mk $(MAKEJOBS) all
41 d-gettext:
42 LC_ALL=C xgettext --sort-by-file --strict --add-location \
43 --from-code=UTF-8 --keyword --keyword=_ --keyword=N_ \
44 --add-comments=I18N --foreign-user \
45 -o messages.pot *.c *.h
47 _prego = SHELL="$(SHELL)" MAKE="$(MAKE)" \
48 CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
49 $(SHELL) ./mk-conf.sh || exit 1
50 _prestop = if [ -f ./mk.mk ]; then :; else \
51 echo 'Program not configured, nothing to do';\
52 echo 'Use one of the targets: config, all, tangerine';\
53 exit 1;\
54 fi;\
55 < ./config.ev read __ev__; eval $${__ev__}; unset __ev__
57 # s-mk-mode