summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-05-01 22:01:54 +0000
committerNicolas Vigier <boklm@mageia.org>2011-05-01 22:01:54 +0000
commit780e985c5e06f1b74a2ebecadcab9c16d0204b1d (patch)
treef62ba38298fc09a8bbafc9db40165de4bebb2335 /Makefile
parentd311e59a4169cdef81c9ebda0a6a6d67f6683ea2 (diff)
downloadmgatools-780e985c5e06f1b74a2ebecadcab9c16d0204b1d.tar
mgatools-780e985c5e06f1b74a2ebecadcab9c16d0204b1d.tar.gz
mgatools-780e985c5e06f1b74a2ebecadcab9c16d0204b1d.tar.bz2
mgatools-780e985c5e06f1b74a2ebecadcab9c16d0204b1d.tar.xz
mgatools-780e985c5e06f1b74a2ebecadcab9c16d0204b1d.zip
add makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..da29f57
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+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 -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 *~
+cleandist: clean
+ rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.bz2
+
+tar:
+ tar cjf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
+ rm -rf $(NAME)-$(VERSION)
+
+dist: cleandist export tar
+
+export:
+ svn export -q -rBASE . $(NAME)-$(VERSION)
+