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 \
13 tangerine
: config build
test install
14 citron
: config build
install
20 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
$(MAKEJOBS
) all
21 install packager-install
: build
23 LC_ALL
=C
$${MAKE} -f mk-config.mk DESTDIR
="$(DESTDIR)" install
25 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
uninstall
28 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
clean
30 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
distclean
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
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
42 LC_ALL
=C
$${MAKE} -f mk-config.mk _update-version
&&\
43 LC_ALL
=C
$${MAKE} -f mk-config.mk
$(MAKEJOBS
) all
45 # The test should inherit the user runtime environment!
47 @
$(__prestop
); LC_ALL
=C
$(MAKE
) -f mk-config.mk
test
51 LC_ALL
=C xgettext
--sort-by-file
--strict
--add-location \
52 --from-code
=UTF-8
--keyword
--keyword
=_
--keyword
=N_ \
53 --add-comments
=I18N
--foreign-user \
54 -o messages.pot
*.c
*.h
56 _prego
= if CWDDIR
="$(CWDDIR)" SRCDIR
="$(SRCDIR)" \
57 SHELL
="$(SHELL)" MAKE
="$(MAKE)" CC
="$(CC)" \
58 CFLAGS
="$(CFLAGS)" LDFLAGS
="$(LDFLAGS)" \
59 $(SHELL
) "$(SRCDIR)"make-config.sh
; then
:; else exit
1; fi
60 __prestop
= if
[ -f .
/mk-config.mk
]; then
:; else \
61 echo
'Program not configured, nothing to do';\
62 echo
'Use one of the targets: config, all, tangerine, citron';\
65 _prestop
= $(__prestop
);. .
/mk-config.ev