NAME = mgatools VERSION=0.1 ALL = PERL_VENDORLIB=$(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib) install: $(ALL) install -d $(DESTDIR)/usr/bin install mgaiso-addmd5 $(DESTDIR)/usr/bin install mgaiso-checkmd5 $(DESTDIR)/usr/bin install clean-rpmsrate $(DESTDIR)/usr/bin install mga-hdlists $(DESTDIR)/usr/bin install mga-hdlists-cauldron $(DESTDIR)/usr/bin install mga-hdlists-updates $(DESTDIR)/usr/bin install mga-hdlists-backports $(DESTDIR)/usr/bin install mga-move-pkg $(DESTDIR)/usr/bin install -d $(DESTDIR)/$(PERL_VENDORLIB)/MGATools for i in rpmsrate.pm iso.pm; do install pm/MGATools/$$i $(DESTDIR)/$(PERL_VENDORLIB)/MGATools/; done localdist: dist clean: -rm -f *~ tar: git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz; rm -rf $(NAME)-$(VERSION) dist: tar