Skip to content

Commit

Permalink
Remove unused snapshot and release targets from Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeger committed Aug 15, 2011
1 parent 8e0f187 commit 3fe9e41
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,12 @@ GZFILES = $(wildcard *.gz)
VERSION = $(shell test -e debian/changelog && grep '(.*)' debian/changelog | sed 's/.*(//' | sed 's/).*//' | head -n1 || (test -e version && cat version || git describe))
GIT = $(wildcard .git/index version)
DIST = easystroke-$(VERSION)
ARCH = $(shell uname -m)

-include debug.mk

all: $(BINARY) $(MOFILES)

.PHONY: all clean snapshot release translate update-translations compile-translations
.PHONY: all clean translate update-translations compile-translations

clean:
$(RM) $(OFILES) $(BINARY) $(GENFILES) $(DEPFILES) $(MANPAGE) $(GZFILES) po/*.pot
Expand Down Expand Up @@ -130,26 +129,15 @@ uninstall:
$(RM) `echo $$f | sed "s|^po/|$(DESTDIR)$(LOCALEDIR)/|"`; \
done

snapshot: $(DIST)_$(ARCH).tar.gz

tarball: $(DIST).tar.gz

release: $(DIST).tar.gz
rsync -avP $(DIST).tar.gz thjaeger@frs.sourceforge.net:uploads/

tmp/$(DIST): $(GIT)
$(RM) -r tmp
mkdir tmp
git archive --format=tar --prefix=$(DIST)/ HEAD | (cd tmp && tar x)
echo $(VERSION) > $@/version
$(RM) $@/.gitignore $@/release

$(DIST)_$(ARCH).tar.gz: tmp/$(DIST)
$(MAKE) -j2 -C $<
strip -s $</easystroke
tar -czf $@ -C $< easystroke
$(RM) -r tmp

$(DIST).tar.gz: tmp/$(DIST)
tar -czf $@ -C tmp/ $(DIST)
$(RM) -r tmp

0 comments on commit 3fe9e41

Please sign in to comment.