Add 'dist' target to Makefile.

This commit is contained in:
Jonathan Moore Liles 2008-02-13 10:23:19 -06:00
parent bc64b35d2a
commit 9f151de3e1
1 changed files with 10 additions and 6 deletions

View File

@ -4,9 +4,10 @@
# This file is licencesd under version 2 of the GPL. # This file is licencesd under version 2 of the GPL.
# config # config
PREFIX=/usr/local/ prefix=/usr/local/
SYSTEM_PATH=$(PREFIX)/share/non-sequencer/
DOCUMENT_PATH=$(PREFIX)/share/doc/non-sequencer/ SYSTEM_PATH=$(prefix)/share/non-sequencer/
DOCUMENT_PATH=$(prefix)/share/doc/non-sequencer/
USE_LASH=1 USE_LASH=1
VERSION=1.9.0 VERSION=1.9.0
@ -17,7 +18,7 @@ CFLAGS:=-O0 -ggdb -fno-omit-frame-pointer -Wall
# CFLAGS:=-O3 -fomit-frame-pointer -DNDEBUG # CFLAGS:=-O3 -fomit-frame-pointer -DNDEBUG
CFLAGS+=-DVERSION=\"$(VERSION)\" \ CFLAGS+=-DVERSION=\"$(VERSION)\" \
-DINSTALL_PREFIX=\"$(PREFIX)\" \ -DINSTALL_PREFIX=\"$(prefix)\" \
-DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \ -DSYSTEM_PATH=\"$(SYSTEM_PATH)\" \
-DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\" -DDOCUMENT_PATH=\"$(DOCUMENT_PATH)\"
@ -56,7 +57,7 @@ SRCS= \
OBJS=$(SRCS:.C=.o) OBJS=$(SRCS:.C=.o)
.PHONEY: all clean install .PHONEY: all clean install dist
all: non makedepend all: non makedepend
@ -84,7 +85,7 @@ non: $(OBJS)
install: install:
@ echo -n "Installing..." @ echo -n "Installing..."
@ install non $(PREFIX)/bin @ install non $(prefix)/bin
@ mkdir -p "$(SYSTEM_PATH)" @ mkdir -p "$(SYSTEM_PATH)"
@ cp -r instruments "$(SYSTEM_PATH)" @ cp -r instruments "$(SYSTEM_PATH)"
@ mkdir -p "$(DOCUMENT_PATH)" @ mkdir -p "$(DOCUMENT_PATH)"
@ -92,6 +93,9 @@ install:
@ echo done @ echo done
# make -C doc install # make -C doc install
dist:
git archive --prefix=non-sequencer-$(VERSION)/ v$(VERSION) | bzip2 > non-sequencer-$(VERSION).tar.bz2
TAGS: $(SRCS) TAGS: $(SRCS)
etags $(SRCS) etags $(SRCS)