summaryrefslogtreecommitdiffstats
path: root/perl-install/Makefile
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2011-06-02 20:51:35 +0000
committerDexter Morgan <dmorgan@mageia.org>2011-06-02 20:51:35 +0000
commita9b2bdafaf625d10aef2f476aa4014fd36c846bc (patch)
tree2364afc0ee6739b59a25c44d68c9f003bcaf03d9 /perl-install/Makefile
downloaddrakx-a9b2bdafaf625d10aef2f476aa4014fd36c846bc.tar
drakx-a9b2bdafaf625d10aef2f476aa4014fd36c846bc.tar.gz
drakx-a9b2bdafaf625d10aef2f476aa4014fd36c846bc.tar.bz2
drakx-a9b2bdafaf625d10aef2f476aa4014fd36c846bc.tar.xz
drakx-a9b2bdafaf625d10aef2f476aa4014fd36c846bc.zip
Branch for updates
Diffstat (limited to 'perl-install/Makefile')
-rw-r--r--perl-install/Makefile86
1 files changed, 86 insertions, 0 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile
new file mode 100644
index 000000000..cd393675a
--- /dev/null
+++ b/perl-install/Makefile
@@ -0,0 +1,86 @@
+include ../Makefile.config
+include Makefile.config
+
+PACKAGE = drakxtools
+PKGVERSION = $(VERSION)
+
+POFILES = $(shell ls share/po/*.po)
+MOFILES = $(POFILES:%.po=%.mo)
+OTHERS = $(OTHERDIRS) $(OTHERFILES)
+OTHERDIRS = tools/serial_probe
+OTHERFILES = tools/rpcinfo-flushed.c
+
+.PHONY: all $(DIRS) install clean
+
+all: TAGS $(DIRS)
+
+xs: $(DIRS)
+
+TAGS: $(ALLPMS)
+ -etags $^ /usr/lib/perl5/*/*/MDK/Common/*.pm
+
+clean:
+ for i in $(DIRS) share/po install/help/po install/share/po; do $(MAKE) -C $$i clean; done;:
+ rm -rf auto drakxtools*.tar* *.bak
+ find . -name "*~" -o -name ".#*" -o -name "TAGS" -o -name "*.old" | xargs rm -f
+
+check_pms_encoding:
+ @for i in $(ALLPMS); do charset=ascii; grep -q 'use utf8' $$i && charset=utf8; iconv -f $$charset -t $$charset $$i >/dev/null || { echo "bad $$charset character in $$i"; exit 1; }; done
+
+check: check_pms_encoding
+ perl -I. -Mlang -e 'lang::check'
+
+check2:
+ perl -I. -Mkeyboard -e 'keyboard::check'
+
+$(DIRS):
+ install -d auto
+ $(MAKE) -C $@
+
+test_pms:
+ perl_checker install/install2.pm install/steps_gtk.pm install/steps_stdio.pm partition_table/*.pm standalone/{harddrake2,diskdrake,draksec}
+
+test_pms_all:
+ perl_checker -v --generate-package-dependencies-graph .deps $(ALLPMS)
+
+%.mo: %.po
+ msgfmt -o $@ $<
+
+install_pms stage2 full_stage2:
+ make -C install $@
+
+mo_files : $(MOFILES)
+
+# rules to build tarball
+localcopy: clean
+ rm -rf $(PACKAGE)-$(PKGVERSION)*
+ mkdir -p $(PACKAGE)-$(PKGVERSION)/tools
+ svn export -q -rBASE . $(PACKAGE)-$(PKGVERSION)/perl-install
+ for i in $(OTHERS); do svn export -q ../$$i $(PACKAGE)-$(PKGVERSION)/$$i; done
+ rm -rf $(PACKAGE)-$(PKGVERSION)/perl-install/{install,unused,list_modules.pm}
+ cp -f ../kernel/list_modules.pm $(PACKAGE)-$(PKGVERSION)/perl-install
+ cd $(PACKAGE)-$(PKGVERSION)/perl-install ; mv -f Makefile.drakxtools Makefile
+ @make nuke_perl
+
+localdist: tar
+
+tar: localcopy
+ tar cfa $(PACKAGE)-$(PKGVERSION).tar.xz $(PACKAGE)-$(PKGVERSION)
+ rm -rf $(PACKAGE)-$(PKGVERSION)
+
+# rules to build a distributable rpm
+
+nuke_perl:
+ find $(PACKAGE)-$(PKGVERSION)/perl-install -name '*.pm' | xargs ../tools/simplify-drakx-modules
+ find $(PACKAGE)-$(PKGVERSION)/perl-install/standalone -type f | xargs ../tools/simplify-drakx-modules
+
+# [pixel] for my grep looking for any .pm files
+pixel_standalone_links:
+ rm -rf .standalone_apps.swa
+ mkdir .standalone_apps.swa
+ for i in $(STANDALONEPMS_); do ln -sf ../standalone/$$i .standalone_apps.swa/$$i.pm; done
+
+check_perl_checker:
+ rm -f share/po/libDrakX.pot install/share/po/DrakX.pot
+ @make -C share/po libDrakX.pot
+ @make -C install/share/po DrakX.pot