Commit ea6c7153 authored by Colomban Wendling's avatar Colomban Wendling
Browse files

Add a rule to create a tarball

parent 81200cf6
......@@ -9,9 +9,11 @@ MKDIR_P ?= mkdir -p
INSTALL ?= install
RM ?= rm -f
SED ?= sed
TAR ?= tar
PROG = nautilus-mp3-converter
ACTION = $(PROG).desktop
DIST = $(PROG) $(ACTION) Makefile
all: $(PROG) $(ACTION)
......@@ -25,3 +27,9 @@ install: all
$(RM) $(bindir)/$(PROG)
$(RM) $(actionsdir)/$(ACTION)
# FIXME: proper permissions no matter the local ones
$(PROG).tar.gz: $(DIST)
$(TAR) -z -c --transform 's%^%$(PROG)/%' -f "$@" $^
dist: $(PROG).tar.gz
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment