Skip to content
Browse files

Put the xmms2-scrobbler binary in bin/ like README says.

  • Loading branch information...
1 parent 31d3818 commit b57b54586f8977d54916437ded8e62749a020687 Tilman Sauerbeck committed May 9, 2009
Showing with 12 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +11 −5 Makefile
View
1 .gitignore
@@ -1,4 +1,5 @@
ChangeLog
+bin
pkg
src/xmms2-scrobbler
*.o
View
16 Makefile
@@ -9,25 +9,31 @@ CURL_LDFLAGS := `pkg-config libcurl --libs`
ifndef VERBOSE
QUIET_CC = @echo ' ' CC $@;
QUIET_LINK = @echo ' ' LINK $@;
+ QUIET_MKDIR = @echo ' ' MKDIR $@;
endif
+BINARY := bin/xmms2-scrobbler
OBJECTS := src/xmms2-scrobbler.o src/queue.o src/strbuf.o src/md5.o \
src/submission.o
-all: src/xmms2-scrobbler
+all: $(BINARY)
-install: src/xmms2-scrobbler
+install: $(BINARY)
install -d $(DESTDIR)$(PREFIX)/bin
- install -m 755 src/xmms2-scrobbler $(DESTDIR)$(PREFIX)/bin
+ install -m 755 $(BINARY) $(DESTDIR)$(PREFIX)/bin
-src/xmms2-scrobbler: $(OBJECTS)
+$(BINARY): $(OBJECTS) bin
$(QUIET_LINK)$(CC) $(LDFLAGS) $(XMMS_LDFLAGS) $(CURL_LDFLAGS) $(OBJECTS) -o $@
src/%.o : src/%.c
$(QUIET_CC)$(CC) $(CFLAGS) $(XMMS_CFLAGS) $(CURL_CFLAGS) -o $@ -c $<
+bin:
+ $(QUIET_MKDIR)mkdir bin
+
ChangeLog:
git log > ChangeLog
clean:
- rm -f $(OBJECTS) src/xmms2-scrobbler
+ rm -f $(OBJECTS) $(BINARY)
+ rmdir bin

0 comments on commit b57b545

Please sign in to comment.
Something went wrong with that request. Please try again.