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 \
10 tangerine
: config build
test install
16 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
$(MAKEJOBS
) all
17 install packager-install
: build
19 LC_ALL
=C
$${MAKE} -f mk-config.mk DESTDIR
="$(DESTDIR)" install
21 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
uninstall
24 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
clean
26 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
distclean
29 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
$(MAKEJOBS
) test
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
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
41 LC_ALL
=C
$${MAKE} -f mk-config.mk _update-version
&&\
42 LC_ALL
=C
$${MAKE} -f mk-config.mk
$(MAKEJOBS
) all
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';\
59 < .
/mk-config.ev read __ev__
; eval
$${__ev__}; unset __ev__