From fbaad72d3b4f65b2b06d965d060f87fd17ac6411 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sun, 6 Jan 2013 14:47:25 +0100 Subject: makefile: generate gpg signatures --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3