1# Copyright (C) 1999 Scott Thomas Haug <scott@id3.org> 2# Copyright (C) 2002 Thijmen Klok <thijmen@id3lib.org> 3# 4# This file is free software; as a special exception the author gives 5# unlimited permission to copy and/or distribute it, with or without 6# modifications, as long as this notice is preserved. 7# 8# This program is distributed in the hope that it will be useful, but 9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 12# require automake 1.5 13AUTOMAKE_OPTIONS = 1.5 14 15EXTRA_DIST = \ 16 HISTORY \ 17 config.h.win32 \ 18 config.h.win32.in \ 19 id3lib.spec \ 20 id3lib.spec.in \ 21 reconf \ 22 makefile.win32 \ 23 makewin32.bat 24if ID3_NEEDZLIB 25zlib_subdir = zlib 26else 27zlib_subdir = 28endif 29 30SUBDIRS = . m4 $(zlib_subdir) doc include id3com src examples 31DIST_SUBDIRS = . m4 zlib doc include id3com src examples prj libprj 32 33INCLUDES = @ID3LIB_DEBUG_FLAGS@ 34 35config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in 36 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 37 38id3lib.spec: $(top_builddir)/config.status $(top_srcdir)/id3lib.spec.in 39 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 40 41docsdistdir = $(PACKAGE)-doc-$(VERSION) 42 43.PHONY: release snapshot docs-release docs 44 45changelog: 46 ./cvs2cl.pl --tags --branches --revisions --day-of-week --prune --fsf -U AUTHORS -W 3600 47 48docs: 49 -cd doc && $(MAKE) $(AM_MAKEFLAGS) $@ 50 51docs-release: docs 52 -mv doc/$(docsdistdir).* . 53 -cd examples && $(MAKE) $(AM_MAKEFLAGS) clean 54 -mkdir $(docsdistdir) 55 -cp -R examples $(docsdistdir) 56 -cp doc/*.* $(docsdistdir) 57 -cp -R doc/@DOX_DIR_HTML@ $(docsdistdir) 58 -cp NEWS $(docsdistdir)/NEWS.txt 59 -cp ChangeLog $(docsdistdir)/ChangeLog.txt 60 -find $(docsdistdir) -name "Makefile*" -exec rm -f {} \; 61 -find $(docsdistdir) -name "*.mp3" -exec rm -f {} \; 62 GZIP=$(GZIP_ENV) $(TAR) zcf $(docsdistdir).tar.gz $(docsdistdir) 63 -rm -rf $(docsdistdir) 64 65release: config.h.win32 id3lib.spec 66 -rm -rf .deps */.deps $(distdir).zip 67 $(MAKE) $(AM_MAKEFLAGS) distcheck 68 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz 69 -cp -R id3com/ prj/ libprj/ delphi/ $(distdir) 70 -find $(distdir) -name "*~" -exec rm {} \; 71 -find $(distdir) -type d -name CVS -exec rm -r {} \; 72 -find $(distdir) -name .cvsignore -exec rm {} \; 73 -find $(distdir) \( -name "*.dsp" -or -name "*.dsw" \) -exec unix2dos {} \; 74 cd $(distdir) && cp config.h.win32 config.h 75 cd $(distdir) && zip -r ../$(distdir).zip * 76 cd $(distdir) && ./configure && $(MAKE) $(AM_MAKEFLAGS) docs-release 77 mv $(distdir)/$(docsdistdir).* . 78 -rm -rf $(distdir) 79 80snapshot: config.h.win32 81 ss_distdir=$(PACKAGE)-`date +"%Y%m%d"`; \ 82 $(MAKE) $(AM_MAKEFLAGS) distdir distdir=$$ss_distdir; \ 83 chmod -R a+r $$ss_distdir; \ 84 GZIP=$(GZIP_ENV) $(TAR) chozf $${ss_distdir}.tar.gz $$ss_distdir; \ 85 cd $$ss_distdir && cp config.h.win32 config.h && cd ..; \ 86 cd $$ss_distdir && zip -r ../$${ss_distdir}.zip * && cd ..; \ 87 rm -rf $$ss_distdir 88