mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-21 23:34:18 +02:00
moved all variable definitions to the top of the Makefile.
This commit is contained in:
parent
82fa63600b
commit
c48b05d743
1 changed files with 9 additions and 9 deletions
18
Makefile
18
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue