From c48b05d7437435c0c7513e9d98ab04b565c87f92 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 10 Oct 2008 20:05:43 -0500 Subject: [PATCH] moved all variable definitions to the top of the Makefile. --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index f012e70..fe78cad 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,15 @@ LDLIBS = -lespeak PREFIX = /usr BINDIR = $(PREFIX)/bin +ifeq ("$(origin TAG)", "command line") +TIMESTAMP := _p$(shell date +%Y%m%d) +endif + +VERSION := $(shell grep 'Version.*=' cli.c | sed 's/.*"\(.*\)";/\1/') +TAG := v$(VERSION) +TARPREFIX := espeakup-$(VERSION) +TARFILE := $(TARPREFIX)$(TIMESTAMP).tar + all: espeakup install: espeakup @@ -30,15 +39,6 @@ distclean: clean espeakup: $(OBJS) -ifeq ("$(origin TAG)", "command line") -TIMESTAMP := _p$(shell date +%Y%m%d) -endif - -VERSION := $(shell grep 'Version.*=' cli.c | sed 's/.*"\(.*\)";/\1/') -TAG := v$(VERSION) -TARPREFIX := espeakup-$(VERSION) -TARFILE := $(TARPREFIX)$(TIMESTAMP).tar - tarball: git archive --format=tar --prefix=$(TARPREFIX)/ $(TAG) > $(TARFILE) tar f $(TARFILE) --delete $(TARPREFIX)/.gitignore