summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 48198ef3c8083e68162e404bf1601ffeb5bb0011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
NAME = mgatools
VERSION=0.1

ALL = 

PERL_VENDORLIB=$(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib)

install: $(ALL)
	install -m0755 -d $(DESTDIR)/usr/bin
	install -m0755 mgaiso-addmd5 $(DESTDIR)/usr/bin
	install -m0755 mgaiso-checkmd5 $(DESTDIR)/usr/bin
	install -m0755 clean-rpmsrate $(DESTDIR)/usr/bin
	install -m0755 mga-hdlists $(DESTDIR)/usr/bin
	install -m0755 mga-hdlists-cauldron $(DESTDIR)/usr/bin
	install -m0755 mga-hdlists-updates $(DESTDIR)/usr/bin
	install -m0755 mga-hdlists-backports $(DESTDIR)/usr/bin
	install -m0755 mga-move-pkg $(DESTDIR)/usr/bin
	install -m0755 mga-createrepo $(DESTDIR)/usr/bin
	install -m0755 mga-useredit $(DESTDIR)/usr/bin
	install -m0755 mga-userpasswd $(DESTDIR)/usr/bin
	install -m0755 mgacreatehome $(DESTDIR)/usr/bin
	install -m0755 mgagit-format-commit-email $(DESTDIR)/usr/bin
	install -m0755 mirror_mageia $(DESTDIR)/usr/bin
	install -m0755 sign_torrents $(DESTDIR)/usr/bin

	install -d -m0755 $(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