From 9355004b895406353a6d1018d16918ac608e4271 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Thu, 30 Jun 2005 08:33:08 +0000 Subject: - make rpm-helper provide itself its macros --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6433b58..d8b25bd 100644 --- a/Makefile +++ b/Makefile @@ -13,11 +13,15 @@ RELEASE := $(shell rpm -q --qf %{RELEASE} --specfile $(PACKAGE).spec) TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') FILES = AUTHORS README README.CVS COPYING ChangeLog Makefile \ - $(PACKAGE).spec $(SCRIPTS) + $(PACKAGE).spec $(SCRIPTS) $(MACROFILEIN) SCRIPTS = add-user del-user add-service del-service create-file \ add-group del-group add-shell del-shell verify-shell -LIBDIR=/usr/share/rpm-helper +LIBDIR=/usr/share/$(PACKAGE) +RPMACROSDIR=/etc/rpm/macros.d + +MACROFILEIN = $(PACKAGE).macros.in +MACROFILE = $(MACROFILEIN:.in=) all: @echo "done" @@ -28,6 +32,9 @@ clean: install: -mkdir -p $(DESTDIR)$(LIBDIR) cp -p $(SCRIPTS) $(DESTDIR)$(LIBDIR) + -mkdir -p $(DESTDIR)$(RPMACROSDIR) + cat $(MACROFILEIN) | \ + sed 's,@LIBDIR@,$(LIBDIR),g' > $(DESTDIR)$(RPMACROSDIR)/$(MACROFILE) version: @echo "$(VERSION)-$(RELEASE)" -- cgit v1.2.1