Blame nss/lib/zlib/Makefile

Packit 40b132
#! gmake
Packit 40b132
# 
Packit 40b132
# This Source Code Form is subject to the terms of the Mozilla Public
Packit 40b132
# License, v. 2.0. If a copy of the MPL was not distributed with this
Packit 40b132
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Packit 40b132
Packit 40b132
#######################################################################
Packit 40b132
# (1) Include initial platform-independent assignments (MANDATORY).   #
Packit 40b132
#######################################################################
Packit 40b132
Packit 40b132
include manifest.mn
Packit 40b132
Packit 40b132
#######################################################################
Packit 40b132
# (2) Include "global" configuration information. (OPTIONAL)          #
Packit 40b132
#######################################################################
Packit 40b132
Packit 40b132
include $(CORE_DEPTH)/coreconf/config.mk
Packit 40b132
Packit 40b132
#######################################################################
Packit 40b132
# (3) Include "component" configuration information. (OPTIONAL)       #
Packit 40b132
#######################################################################
Packit 40b132
Packit 40b132
Packit 40b132
#######################################################################
Packit 40b132
# (4) Include "local" platform-dependent assignments (OPTIONAL).      #
Packit 40b132
#######################################################################
Packit 40b132
Packit 40b132
include config.mk
Packit 40b132
Packit 40b132
#######################################################################
Packit 40b132
# (5) Execute "global" rules. (OPTIONAL)                              #
Packit 40b132
#######################################################################
Packit 40b132
Packit 40b132
include $(CORE_DEPTH)/coreconf/rules.mk
Packit 40b132
Packit 40b132
#######################################################################
Packit 40b132
# (6) Execute "component" rules. (OPTIONAL)                           #
Packit 40b132
#######################################################################
Packit 40b132
Packit 40b132
Packit 40b132
Packit 40b132
#######################################################################
Packit 40b132
# (7) Execute "local" rules. (OPTIONAL).                              #
Packit 40b132
#######################################################################
Packit 40b132
Packit 40b132
export:: private_export
Packit 40b132
Packit 40b132
test: $(PROGRAMS)
Packit 40b132
	@cd $(OBJDIR); \
Packit 40b132
	if echo hello world | ./minigzip | ./minigzip -d && ./example; then \
Packit 40b132
	  echo '		*** zlib test OK ***'; \
Packit 40b132
	else \
Packit 40b132
	  echo '		*** zlib test FAILED ***'; false; \
Packit 40b132
	fi
Packit 40b132
	-@rm -f foo.gz