diff --git a/FL/makefile.inc b/FL/makefile.inc index 31cfeef..71bfab8 100644 --- a/FL/makefile.inc +++ b/FL/makefile.inc @@ -1,16 +1,9 @@ # -*- mode: makefile; -*- -# always regenerate source list when running under git -FOO := $(shell [ -f .git ] && [ -x `which git` ] && rm -f FL/.sources ) - -FL/.sources: - @ echo "FL_SRCS=\\" > FL/.sources - @ git ls-files 'FL/*.C' | tr '\n' ' ' >> FL/.sources - @ git ls-files 'FL/*.fl' | tr '\n' ' ' >> FL/.sources - --include FL/.sources +FL_SRCS := $(wildcard FL/*.C FL/*.fl) FL_SRCS:=$(FL_SRCS:.fl=.C) +FL_SRCS:=$(sort $(FL_SRCS)) FL_OBJS:=$(FL_SRCS:.C=.o) all: FL/libfl_widgets.a diff --git a/Makefile b/Makefile index 4347208..9f54f39 100644 --- a/Makefile +++ b/Makefile @@ -69,27 +69,11 @@ TAGS: $(SRCS) clean_deps: @ rm -f .deps -SOURCES = Timeline/.sources FL/.sources - -clean_sources: - @ rm -f $(SOURCES) - -.sources: $(SOURCES) - -rearrange: clean_deps clean_sources - @ $(MAKE) -s .deps - @ $(MAKE) -s .sources - -.PHONEY: clean config depend clean_deps clean_sources .sources rearrange +.PHONEY: clean config depend clean_deps clean: FL_clean Timeline_clean -# (generated) files not in git that need to go into the distribution tarball -EXTRA_DIST := $(SOURCES) - -dist: .sources - @ echo -n Building tarball... - @ scripts/dist non-daw $(VERSION) $(EXTRA_DIST) - @ echo $(DONE) +dist: + git archive --prefix=non-daw-$(VERSION)/ v$(VERSION) | bzip2 > non-daw-$(VERSION).tar.bz2 -include .deps diff --git a/Timeline/Engine/Peaks.C b/Timeline/Engine/Peaks.C index 2720b0f..d5521ad 100644 --- a/Timeline/Engine/Peaks.C +++ b/Timeline/Engine/Peaks.C @@ -733,7 +733,7 @@ Peaks::Builder::make_peaks_mipmap ( void ) { DMESSAGE( "building level %d peak cache", i + 1 ); - DMESSAGE( "%lu", _clip->length() / cs ); +/* DMESSAGE( "%lu", _clip->length() / cs ); */ if ( _clip->length() / cs < 1 ) { @@ -767,6 +767,8 @@ Peaks::Builder::make_peaks_mipmap ( void ) fclose( rfp ); fclose( fp ); + DMESSAGE( "done" ); + return true; } diff --git a/Timeline/makefile.inc b/Timeline/makefile.inc index 00901b5..2b36f8e 100644 --- a/Timeline/makefile.inc +++ b/Timeline/makefile.inc @@ -2,19 +2,12 @@ Timeline_VERSION := 0.5.0 -# always regenerate source list when running under git -FOO := $(shell [ -f .git ] && [ -x `which git` ] && rm -f FL/.sources ) - -Timeline/.sources: - @ echo "Timeline_SRCS=\\" > Timeline/.sources - @ git ls-files 'Timeline/*.C' | tr '\n' ' ' >> Timeline/.sources - @ git ls-files 'Timeline/*.fl' | tr '\n' ' ' >> Timeline/.sources - --include Timeline/.sources +Timeline_SRCS := $(wildcard Timeline/*.C Timeline/*.fl Timeline/Engine/*.C) Timeline_SRCS += util/debug.C Timeline_SRCS:=$(Timeline_SRCS:.fl=.C) +Timeline_SRCS:=$(sort $(Timeline_SRCS)) Timeline_OBJS:=$(Timeline_SRCS:.C=.o) Timeline_LIBS := $(FLTK_LIBS) $(JACK_LIBS) $(SNDFILE_LIBS) $(LASH_LIBS) diff --git a/scripts/dist b/scripts/dist deleted file mode 100755 index c5c426f..0000000 --- a/scripts/dist +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# May 2008 Jonathan Moore Liles -# -# Use git to build a distribution tarball. -# -# USAGE: -# -# dist foo 1.2.0 extra-files ... -# -# This will build a tarball foo-1.2.0.tar.bz2 using git tag 'v1.2.0' -# -# Files not in git but listed as arguemnts will also be included in the archive. - -. colors - -NAME="$1" -shift 1 -VERSION="$1" -shift 1 -EXTRA_DIST="$@" - -PREFIX="${NAME}-${VERSION}" -git archive --prefix="${PREFIX}/" v${VERSION} > ${PREFIX}.tar -tar --owner 0 --group 0 --transform "s:^:${PREFIX}/:" -rf ${PREFIX}.tar ${EXTRA_DIST} -bzip2 -f ${PREFIX}.tar