summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2013-01-06 14:47:25 +0100
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2013-01-06 14:47:25 +0100
commitfbaad72d3b4f65b2b06d965d060f87fd17ac6411 (patch)
tree0ec40efab1c63b1be87db519308ec9f6a6feb8c1
parentc06931f6726ada9bebc6f69e0d83c02cbf0bef94 (diff)
downloadvdr-plugin-inputdev-fbaad72d3b4f65b2b06d965d060f87fd17ac6411.tar.gz
vdr-plugin-inputdev-fbaad72d3b4f65b2b06d965d060f87fd17ac6411.tar.bz2
makefile: generate gpg signatures
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8742c0f..383a76e 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ VERSION = 0.0.1
CXX ?= $(CC)
TAR ?= tar
XZ ?= xz
+GPG ?= gpg
GZIP ?= gzip
MSGFMT ?= msgfmt
MSGMERGE ?= msgmerge
@@ -141,13 +142,18 @@ libvdr-$(PLUGIN).so: $(plugin_OBJS)
$(CXX) $(AM_LDFLAGS) $(LDFLAGS) $(LDFLAGS_$@) -shared -o $@ $^ $(LIBS)
@cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
-dist: $(PACKAGE).xz $(PACKAGE).gz
+_packages = $(addprefix $(PACKAGE),.xz .gz)
+
+dist: $(_packages) $(addsuffix .asc,$(_packages))
_tar_transform = --transform='s!^!$(ARCHIVE)/!'
$(PACKAGE): $(I18Npo) $(_all_sources)
$(TAR) cf $@ $(TAR_FLAGS) $(_tar_transform) $(sort $^)
+%.asc: %
+ $(GPG) --detach-sign --armor --output $@ $<
+
clean:
@rm -f $(OBJS) libvdr*.so libvdr*.so.* *.d *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot
@rm -f vdr-inputdev