aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2005-06-30 08:33:08 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2005-06-30 08:33:08 +0000
commit9355004b895406353a6d1018d16918ac608e4271 (patch)
tree9f5fba4ce03ec324ec304cf103025b7973d372c2 /Makefile
parent4fcdb3aec25062c621382b6e2666ce24c54c2463 (diff)
downloadrpm-helper-9355004b895406353a6d1018d16918ac608e4271.tar
rpm-helper-9355004b895406353a6d1018d16918ac608e4271.tar.gz
rpm-helper-9355004b895406353a6d1018d16918ac608e4271.tar.bz2
rpm-helper-9355004b895406353a6d1018d16918ac608e4271.tar.xz
rpm-helper-9355004b895406353a6d1018d16918ac608e4271.zip
- make rpm-helper provide itself its macros
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
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)"