"Fossies" - the Fresh Open Source Software Archive

Member "s-nail-14.9.11/makefile" (8 Aug 2018, 2124 Bytes) of package /linux/misc/s-nail-14.9.11.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "makefile": 14.9.10_vs_14.9.11.

    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.
    4 
    5 .PHONY: ohno tangerine citron \
    6 	all config build install uninstall clean distclean test \
    7 	devel odevel
    8 
    9 CWDDIR=
   10 SRCDIR=
   11 
   12 ohno: build
   13 tangerine: config build test install
   14 citron: config build install
   15 all: config build
   16 
   17 config:
   18 	@$(_prego)
   19 build:
   20 	@$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
   21 install packager-install: build
   22 	@$(_prestop);\
   23 	LC_ALL=C $${MAKE} -f mk-config.mk DESTDIR="$(DESTDIR)" install
   24 uninstall:
   25 	@$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk uninstall
   26 
   27 clean:
   28 	@$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk clean
   29 distclean:
   30 	@$(_prestop); LC_ALL=C $${MAKE} -f mk-config.mk distclean
   31 
   32 devel:
   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
   36 odevel:
   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
   40 d-b:
   41 	@$(_prestop);\
   42 	LC_ALL=C $${MAKE} -f mk-config.mk _update-version &&\
   43 	LC_ALL=C $${MAKE} -f mk-config.mk $(MAKEJOBS) all
   44 
   45 # The test should inherit the user runtime environment!
   46 test:
   47 	@$(__prestop); cd .obj && LC_ALL=C $(MAKE) -f mk-config.mk test
   48 citest:
   49 	@$(__prestop); cd .obj && LC_ALL=C $(MAKE) -f mk-config.mk citest
   50 
   51 d-gettext:
   52 	cd "$(SRCDIR)" &&\
   53 	 LC_ALL=C xgettext --sort-by-file --strict --add-location \
   54 		--from-code=UTF-8 --keyword --keyword=_ --keyword=N_ \
   55 		--add-comments=I18N --foreign-user \
   56 		-o messages.pot *.c *.h
   57 
   58 _prego = if CWDDIR="$(CWDDIR)" SRCDIR="$(SRCDIR)" \
   59 		SHELL="$(SHELL)" MAKE="$(MAKE)" CC="$(CC)" \
   60 		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
   61 		$(SHELL) "$(SRCDIR)"make-config.sh "$(MAKEFLAGS)"; then :;\
   62 	else exit 1; fi
   63 __prestop = if [ -f .obj/mk-config.mk ]; then :; else \
   64 		echo 'Program not configured, nothing to do';\
   65 		echo 'Use one of the targets: config, all, tangerine, citron';\
   66 		exit 0;\
   67 	fi
   68 _prestop = $(__prestop); cd .obj && . ./mk-config.ev
   69 
   70 # s-mk-mode