From 8221397af24a2df3c2edbc889847ce0ab15eb3e0 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 17 Jan 2009 19:59:35 +0100 Subject: [PATCH] Move gengetopt targets to own Makefile. --- Makefile.in | 62 +++++------------------------------------------- ggo/Makefile.ggo | 52 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 56 deletions(-) create mode 100644 ggo/Makefile.ggo diff --git a/Makefile.in b/Makefile.in index baae37b2..fc0ffa48 100644 --- a/Makefile.in +++ b/Makefile.in @@ -5,7 +5,8 @@ BINDIR := @bindir@ VARDIR := /var/paraslash PKGDATADIR := @datarootdir@/@PACKAGE_NAME@ MANDIR := @datarootdir@/man/man1 - +PACKAGE_VERSION := @PACKAGE_VERSION@ +PACKAGE_STRING := @PACKAGE_STRING@ install_sh := @install_sh@ build_date := $(shell date) @@ -64,11 +65,11 @@ gengetopts := $(wildcard $(ggo_dir)/*.ggo) gengetopts_c := $(patsubst %/,, $(gengetopts:.ggo=.cmdline.c)) gengetopts_h := $(patsubst %/,, $(gengetopts:.ggo=.cmdline.h)) autocrap := config.h.in configure -tarball_pfx := @PACKAGE_TARNAME@-@PACKAGE_VERSION@ +tarball_pfx := @PACKAGE_TARNAME@-$(PACKAGE_VERSION) tarball_delete = web versions pics .changelog_before_cvs .changelog_cvs .gitignore tarball_delete := $(patsubst %,$(tarball_pfx)/%,$(tarball_delete)) tarball_add := $(gengetopts_c) $(gengetopts_h) $(autocrap) -tarball := @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2 +tarball := @PACKAGE_TARNAME@-$(PACKAGE_VERSION).tar.bz2 .PHONY: clean distclean maintainer-clean install man tarball all: $(BINARIES) $(man_pages) @@ -78,58 +79,7 @@ tarball: $(tarball) *.o: para.h config.h gcc-compat.h include Makefile.deps - -module_ggo_opts := --set-version="(@PACKAGE_STRING@, $(codename))" - -grab_client.cmdline.h grab_client.cmdline.c: $(ggo_dir)/grab_client.ggo - gengetopt $(module_ggo_opts) \ - -S \ - --set-package=grab \ - --no-handle-help \ - --no-handle-error \ - --no-handle-version \ - --arg-struct-name=grab_client_args_info \ - --file-name=$(subst .ggo,,$($@ @@ -249,7 +199,7 @@ install: all man $(install_sh) -m 644 $(man_pages) $(MANDIR) mkdir -p $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain -@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2: $(tarball_add) +@PACKAGE_TARNAME@-$(PACKAGE_VERSION).tar.bz2: $(tarball_add) rm -rf $(tarball_pfx).tar.bz2 $(tarball_pfx) git archive --format=tar --prefix=$(tarball_pfx)/ HEAD \ | tar --delete $(tarball_delete) > $(tarball_pfx).tar diff --git a/ggo/Makefile.ggo b/ggo/Makefile.ggo new file mode 100644 index 00000000..e1b232ec --- /dev/null +++ b/ggo/Makefile.ggo @@ -0,0 +1,52 @@ +module_ggo_opts := --set-version="($(PACKAGE_STRING), $(codename))" + +grab_client.cmdline.h grab_client.cmdline.c: $(ggo_dir)/grab_client.ggo + gengetopt $(module_ggo_opts) \ + -S \ + --set-package=grab \ + --no-handle-help \ + --no-handle-error \ + --no-handle-version \ + --arg-struct-name=grab_client_args_info \ + --file-name=$(subst .ggo,,$(