# $Id: dev.mk,v 2.3 2005/07/16 22:02:21 ehood Exp $ ##-----------------------------------------------------------------------## ## Development makefile. ##-----------------------------------------------------------------------## .PHONY: release code-check version-check \ release-prep installation-doc pod2man relnotes autodoc \ bugs clean clean_local distclean create-bundles test-release \ example TOP = $(shell pwd) SUBDIRS = \ lib \ bin \ # End SUBDIRS include $(TOP)/etc/variables.mk ##-----------------------------------------------------------------------## ifeq ($(_RELEASE_VERSION),) _RELEASE_VERSION = $(shell date -u +"%Y%m%d") endif RPM_VERSION = $(subst -,,$(subst snap,,$(_RELEASE_VERSION))) RPM_RELEASE = 1 TAR_EXCLUDE = $(TOP)/etc/tar-exclude DIST_DIR = $(TOP)/dist PKG_NAME = SGML-DTDParse VERSION_NAME = $(PKG_NAME)-$(_RELEASE_VERSION) RPM_SPEC_FILE = $(TOP)/etc/DTDParse.spec PERL_FILES = \ Makefile.PL \ # End PERL_FILES ##-----------------------------------------------------------------------## default: code-check # Perform a release: code-check not done since release system # does not have all required modules release: version-check create-bundles # Do a release without doing a version check release-dev: code-check create-bundles # Create bundles create-bundles: $(TOUCH) META.yml $(PERL) Makefile.PL $(MAKE) -f Makefile $(MAKE) -f Makefile test $(MAKE) -f Makefile tardist $(MAKE) -f Makefile zipdist @$(RM) -rf $(DIST_DIR) -@$(MKDIR) -p $(DIST_DIR) $(MV) $(PKG_NAME)-* $(DIST_DIR) $(MAKE) -f Makefile distclean version-check: @if [ "$(_SNAP_MODE)" != "1" ]; then \ PERL5LIB=$(TOP)/lib \ $(PERL) etc/version-check.pl "$(_RELEASE_VERSION)" \ lib/SGML/DTDParse.pm; \ fi code-check: make_subdirs perl_syntax clean: clean_subdirs clean_local clean_local: $(RM) -rf $(DIST_DIR) Makefile example distclean: distclean_subdirs clean_local ##-----------------------------------------------------------------------## include $(TOP)/etc/rules.mk