diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2006-05-20 13:15:44 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2006-05-20 13:15:44 +0000 |
commit | a7e4358a3eff6e4770d0cbd5e74fb27b49e57ada (patch) | |
tree | 8498142390dc8dc85d32d9244e2f87a0ade5b8af | |
parent | 005415fa3c343e6aef056e830e195d87ce8b73e1 (diff) | |
download | spec-helper-a7e4358a3eff6e4770d0cbd5e74fb27b49e57ada.tar spec-helper-a7e4358a3eff6e4770d0cbd5e74fb27b49e57ada.tar.gz spec-helper-a7e4358a3eff6e4770d0cbd5e74fb27b49e57ada.tar.bz2 spec-helper-a7e4358a3eff6e4770d0cbd5e74fb27b49e57ada.tar.xz spec-helper-a7e4358a3eff6e4770d0cbd5e74fb27b49e57ada.zip |
- add new files
- use DESTDIR everywhere
- macroize some directory
-rw-r--r-- | Makefile | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -12,18 +12,25 @@ VERSION:=$(shell rpm --qf %{VERSION} -q --specfile spec-helper.spec) RELEASE:=$(shell rpm --qf %{RELEASE} -q --specfile spec-helper.spec) TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') -FILES= spec-helper clean_files clean_perl compress_files strip_files relative_me_babe lib_symlinks gprintify.py fix-mo translate_menu.pl -DISTFILES= AUTHORS Makefile ChangeLog Howto-spec-helper $(FILES) macroszification spec-helper.spec +FILES= spec-helper clean_files clean_perl compress_files strip_files relative_me_babe lib_symlinks gprintify.py fix-mo translate_menu.pl \ + fixpamd gprintify remove_info_dir +MACROSFILE = $(PACKAGE).macros +DISTFILES= AUTHORS Makefile ChangeLog Howto-spec-helper $(FILES) macroszification spec-helper.spec $(MACROSFILE).in bindir=/usr/bin +spec_helper_dir=/usr/share/spec-helper +rpmmacrosdir=/etc/rpm + all: @echo "use make install or make dist" -install: - install -d -m755 $(bindir) - install -m755 macroszification $(bindir)/ - install -d -m 755 $(DESTDIR)/usr/share/spec-helper - install -m 755 $(FILES) $(DESTDIR)/usr/share/spec-helper +install: $(MACROSFILE) + install -d -m755 $(DESTDIR)$(bindir) + install -m755 macroszification $(DESTDIR)$(bindir)/ + install -d -m 755 $(DESTDIR)$(spec_helper_dir) + install -m 755 $(FILES) $(DESTDIR)$(spec_helper_dir) + install -d -m 755 $(DESTDIR)/$(rpmmacrosdir) + install -m 644 $(MACROSFILE) $(DESTDIR)/$(rpmmacrosdir) clean: find . -name '*~' | xargs rm -f @@ -48,6 +55,9 @@ tar: bzip2 -9vf $(PACKAGE)-$(VERSION).tar rm -rf $(PACKAGE)-$(VERSION) +spec-helper.macros: spec-helper.macros.in + cat $< | sed -e 's:@SPEC_HELPER_ROOT@:$(spec_helper_dir):' > $@ + buildrpm: rpm -ta $(PACKAGE)-$(VERSION).tar.bz2 |