/[soft]/drakx/trunk/perl-install/Makefile
ViewVC logotype

Contents of /drakx/trunk/perl-install/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3183 - (show annotations) (download)
Sun Mar 4 20:06:31 2012 UTC (12 years, 1 month ago) by tv
File size: 3127 byte(s)
(dist-git) add a warning about tarballs from SVN vs from GIT (mga#4783)
1 include ../Makefile.config
2 include Makefile.config
3
4 PACKAGE = drakxtools
5 PKGVERSION = $(VERSION)
6
7 POFILES = $(shell ls share/po/*.po)
8 MOFILES = $(POFILES:%.po=%.mo)
9 OTHERS = $(OTHERDIRS) $(OTHERFILES)
10 OTHERDIRS = tools/serial_probe
11 OTHERFILES = tools/rpcinfo-flushed.c
12
13 .PHONY: all $(DIRS) install clean
14
15 all: TAGS $(DIRS)
16
17 xs: $(DIRS)
18
19 TAGS: $(ALLPMS)
20 -etags $^ /usr/lib/perl5/*/*/MDK/Common/*.pm
21
22 clean:
23 for i in $(DIRS) share/po install/help/po install/share/po; do $(MAKE) -C $$i clean; done;:
24 rm -rf auto drakxtools*.tar* *.bak
25 find . -name "*~" -o -name ".#*" -o -name "TAGS" -o -name "*.old" | xargs rm -f
26
27 check_pms_encoding:
28 @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
29
30 check: check_pms_encoding
31 perl -I. -Mlang -e 'lang::check'
32
33 check2:
34 perl -I. -Mkeyboard -e 'keyboard::check'
35
36 $(DIRS):
37 install -d auto
38 $(MAKE) -C $@
39
40 test_pms:
41 perl_checker install/install2.pm install/steps_gtk.pm install/steps_stdio.pm partition_table/*.pm standalone/{harddrake2,diskdrake,draksec}
42
43 test_pms_all:
44 perl_checker -v --generate-package-dependencies-graph .deps $(ALLPMS)
45
46 %.mo: %.po
47 msgfmt -o $@ $<
48
49 install_pms stage2 full_stage2:
50 make -C install $@
51
52 mo_files : $(MOFILES)
53
54 # rules to build tarball
55 localcopy: clean
56 rm -rf $(PACKAGE)-$(PKGVERSION)*
57 mkdir -p $(PACKAGE)-$(PKGVERSION)/tools
58 svn export -q -rBASE . $(PACKAGE)-$(PKGVERSION)/perl-install
59 for i in $(OTHERS); do svn export -q ../$$i $(PACKAGE)-$(PKGVERSION)/$$i; done
60 rm -rf $(PACKAGE)-$(PKGVERSION)/perl-install/{install,unused,list_modules.pm}
61 cp -f ../kernel/list_modules.pm $(PACKAGE)-$(PKGVERSION)/perl-install
62 cd $(PACKAGE)-$(PKGVERSION)/perl-install ; mv -f Makefile.drakxtools Makefile
63 @make nuke_perl
64
65 localdist: tar
66
67 dist-svn: localcopy
68 tar cfa $(PACKAGE)-$(PKGVERSION).tar.xz $(PACKAGE)-$(PKGVERSION)
69 rm -rf $(PACKAGE)-$(PKGVERSION)
70
71 dist-git:
72 @cd ..; git archive --prefix=$(PACKAGE)-$(PKGVERSION)/ HEAD perl-install/{[^i]*,int*} $(OTHERS) kernel/list_modules.pm Makefile.config | xz >$(PACKAGE)-$(PKGVERSION).tar.xz;
73 @echo "WARNING: this archive is not complete !!! Regenerate it from SVN"
74
75 tar:
76 rm -rf $(PACKAGE)*.tar* $(PACKAGE)-$(PKGVERSION)
77 @if [ -e "../.svn" ]; then \
78 $(MAKE) dist-svn; \
79 elif [ -e "../.git" ]; then \
80 $(MAKE) dist-git; \
81 else \
82 echo "Unknown SCM (not SVN nor GIT)";\
83 exit 1; \
84 fi;
85 $(info $(PACKAGE)-$(PKGVERSION).tar.xz is ready)
86
87 # rules to build a distributable rpm
88
89 nuke_perl:
90 find $(PACKAGE)-$(PKGVERSION)/perl-install -name '*.pm' | xargs ../tools/simplify-drakx-modules
91 find $(PACKAGE)-$(PKGVERSION)/perl-install/standalone -type f | xargs ../tools/simplify-drakx-modules
92
93 # [pixel] for my grep looking for any .pm files
94 pixel_standalone_links:
95 rm -rf .standalone_apps.swa
96 mkdir .standalone_apps.swa
97 for i in $(STANDALONEPMS_); do ln -sf ../standalone/$$i .standalone_apps.swa/$$i.pm; done
98
99 check_perl_checker:
100 rm -f share/po/libDrakX.pot install/share/po/DrakX.pot
101 @make -C share/po libDrakX.pot
102 @make -C install/share/po DrakX.pot

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.30