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 # (Targets of ./make-emerge.sh)
12 # For make(1)s which not honour POSIX special treatment
15 .PHONY
: ohno tangerine citron \
16 all config build
install uninstall clean distclean \
20 .WAIT
: # Luckily BSD make supports specifying this as target, too
23 tangerine
: config .WAIT build .WAIT
test .WAIT
install
24 citron
: config .WAIT build .WAIT
install
25 all: config .WAIT build
30 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
all
31 install packager-install
: build
33 LC_ALL
=C
$${MAKE} -f mk-config.mk DESTDIR
="$(DESTDIR)" install
35 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
uninstall
38 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
clean
40 @
$(_prestop
); LC_ALL
=C
$${MAKE} -f mk-config.mk
distclean
43 @CONFIG
=DEVEL
; export CONFIG
; $(_prego
); $(_prestop
);\
44 $${SHELL} "$${TOPDIR}"mk
/make-version.sh create
&&\
45 LC_ALL
=C
$${MAKE} -f mk-config.mk
all
47 @CONFIG
=ODEVEL
; export CONFIG
; $(_prego
); $(_prestop
);\
48 $${SHELL} "$${TOPDIR}"mk
/make-version.sh create
&&\
49 LC_ALL
=C
$${MAKE} -f mk-config.mk
all
51 # (Test should inherit user runtime environ, at least a bit)
53 @
$(__prestop
); cd
"$(OBJDIR)" && LC_ALL
=C
$(MAKE
) -f mk-config.mk
test
55 @
$(__prestop
); cd
"$(OBJDIR)" &&\
56 LC_ALL
=C
$(MAKE
) -f mk-config.mk testnj
59 @DEVEL_ORIG_CC
=$(CC
); export DEVEL_ORIG_CC
; \
60 $(MAKE
) OPT_CROSS_BUILD
=y OPT_DEVEL
=1 VERBOSE
=1 \
61 CC
="$(TOPDIR)"mk
/pcb-cc.sh config
;\
65 $${SHELL} "$${TOPDIR}"mk
/make-version.sh create
&&\
66 LC_ALL
=C
$${MAKE} -f mk-config.mk
all
69 $${SHELL} "$${TOPDIR}"mk
/make-version.sh create
73 sh mk
/make-cmd-tab.sh noverbose
75 sh mk
/su-make-cs-ctype.sh
77 sh mk
/su-make-cs-ctype.sh noverbose
79 sh mk
/su-make-errors.sh
81 sh mk
/su-make-errors.sh noverbose
83 perl mk
/make-okey-map.pl
85 perl mk
/make-okey-map.pl noverbose
87 perl mk
/make-tcap-map.pl
89 perl mk
/make-tcap-map.pl noverbose
92 doxygen mk
/su-doxygen.rc
94 LC_ALL
=C xgettext
--sort-by-file
--strict
--add-location \
95 --from-code
=UTF-8
--keyword
--keyword
=_
--keyword
=N_ \
96 --add-comments
=I18N
--foreign-user \
97 -o messages.pot src
/mx
/*.c src
/mx
/*.h src
/su
/*.c src
/su
/*.h
99 _prego
= if CWDDIR
="$(CWDDIR)" TOPDIR
="$(TOPDIR)" \
100 SHELL
="$(SHELL)" MAKE
="$(MAKE)" CC
="$(CC)" \
101 CFLAGS
="$(CFLAGS)" LDFLAGS
="$(LDFLAGS)" \
102 $(SHELL
) "$(TOPDIR)"mk
/make-config.sh
"$(MAKEFLAGS)"; then
:;\
104 __prestop
= if
[ -f
"$(OBJDIR)"/mk-config.mk
]; then
:; else \
105 echo
'Program not configured, nothing to do';\
106 echo
'Use one of the targets: config, all, tangerine, citron';\
109 _prestop
= $(__prestop
); cd
"$(OBJDIR)" && . .
/mk-config.env