Permalink
Browse files

Added the 'dist' make target and set the package version to 0.3.0.

  • Loading branch information...
Tilman Sauerbeck
Tilman Sauerbeck committed May 9, 2009
1 parent b57b545 commit 542f2499736fc78cdbcbf51788f892ed35b5d02e
Showing with 9 additions and 2 deletions.
  1. +9 −2 Makefile
View
@@ -1,6 +1,9 @@
CFLAGS += -std=gnu99 -Wall -Wwrite-strings -pthread
PREFIX ?= /usr/local
+VERSION := 0.3.0
+TARBALL := xmms2-scrobbler-$(VERSION).tar.gz
+
XMMS_CFLAGS := `pkg-config xmms2-client --cflags`
XMMS_LDFLAGS := `pkg-config xmms2-client --libs`
CURL_CFLAGS := `pkg-config libcurl --cflags`
@@ -31,8 +34,12 @@ src/%.o : src/%.c
bin:
$(QUIET_MKDIR)mkdir bin
-ChangeLog:
- git log > ChangeLog
+dist:
+ rm -rf $(TARBALL) xmms2-scrobbler-$(VERSION)
+ git archive --format=tar --prefix=xmms2-scrobbler-$(VERSION)/ HEAD | tar -x
+ git log > xmms2-scrobbler-$(VERSION)/ChangeLog
+ tar czvf $(TARBALL) xmms2-scrobbler-$(VERSION)
+ rm -rf xmms2-scrobbler-$(VERSION)
clean:
rm -f $(OBJECTS) $(BINARY)

0 comments on commit 542f249

Please sign in to comment.