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 \
9 tangerine
: config build
test install
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
19 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f .
/mk.mk
uninstall
22 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f .
/mk.mk
clean
24 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f .
/mk.mk
distclean
27 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f .
/mk.mk
$(MAKEJOBS
) test
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
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
38 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f .
/mk.mk _update-version
&&\
39 LC_ALL
=C
$${MAKE} -f .
/mk.mk
$(MAKEJOBS
) all
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';\
55 < .
/config.ev read __ev__
; eval
$${__ev__}; unset __ev__