all: tagger include config.mk include scripts/lib.mk CFLAGS += -g $(ICONV_CFLAGS) $(VORBIS_CFLAGS) objs-y := comment.o file.o main.o opt.o utf8_decode.o utf8_encode.o \ utils.o xmalloc.o objs-$(CONFIG_VORBIS) += vorbis-tagger.o vcedit.o objs-y += mp3-tagger.o id3.o clean += *.o tagger distclean += config.mk config.h tags tagger: $(objs-y) $(call cmd,ld,$(ICONV_LIBS) $(VORBIS_LIBS)) install: all $(INSTALL) -m755 $(bindir) tagger tags: exuberant-ctags *.[ch] # generating tarball using GIT {{{ REV = HEAD # version from an annotated tag _ver0 = $(shell git-describe $(REV) 2>/dev/null) # version from a plain tag _ver1 = $(shell git-describe --tags $(REV) 2>/dev/null) # SHA1 _ver2 = $(shell git-rev-parse --verify $(REV) 2>/dev/null) TARNAME = tagger-$(if $(_ver0),$(_ver0),$(if $(_ver1),$(_ver1),$(_ver2))) dist: @tarname=$(TARNAME); \ sha1=$(_ver2); \ test "$$sha1" || { echo "No such revision $(REV)"; exit 1; }; \ echo " DIST $$tarname.tar.bz2"; \ git-tar-tree $$sha1 $$tarname | bzip2 -9 > $$tarname.tar.bz2; \ # }}} .PHONY: all install tags