/[soft]/control-center/trunk/Makefile
ViewVC logotype

Contents of /control-center/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3724 - (show annotations) (download)
Sat Mar 24 06:48:44 2012 UTC (8 years, 7 months ago) by tv
File size: 1955 byte(s)
(dis) rename as dist (but keep an alias)
1 VERSION = 12.22.1
2 NAME = drakconf
3 SUBDIRS = po pixmaps #data
4 localedir = $(DESTDIR)/usr/share/locale
5 mcc_dir = $(DESTDIR)/usr/share/mcc
6 SYSCONFDIR = $(DESTDIR)/etc/sysconfig
7 PERL_VENDORLIB=$(DESTDIR)/$(shell perl -V:installvendorlib | perl -pi -e "s/.*=//; s/[;']//g")
8
9 override CFLAGS += -DPACKAGE=\"$(NAME)\" -DLOCALEDIR=\"$(localedir)\"
10
11 %.desktop: %.desktop.in
12 intltool-merge --utf8 po $< $@ -d -u -c intltool-merge-cache
13
14 all: drakconf drakconf.desktop
15 for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
16
17 drakconf:
18 cp -l control-center drakconf
19
20 clean:
21 $(MAKE) -C po $@
22 rm -f *~ drakconf core .#*[0-9] core.* *.bak
23 for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
24
25 install: all
26 $(MAKE) -C po $@
27 install -d $(DESTDIR)/usr/{bin/,share/icons}
28 install -d $(DESTDIR)/usr/sbin
29 install -d $(mcc_dir)/themes/default/
30 install -m644 control-center.rc $(mcc_dir)/themes/default/gtkrc
31 install -m755 $(NAME) $(DESTDIR)/usr/sbin/$(NAME).real
32 install -m755 wrapper $(DESTDIR)/usr/bin/$(NAME)
33 install -m755 menus_launcher.pl $(DESTDIR)/usr/sbin/
34 install -m755 print_launcher.pl $(DESTDIR)/usr/sbin/
35 install -m755 drakxconf $(DESTDIR)/usr/sbin/
36 install -m755 drakconsole $(DESTDIR)/usr/sbin/
37 install -m755 mdkwebadmin.pl $(DESTDIR)/usr/bin/
38 for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
39 mkdir -p $(PERL_VENDORLIB)/MDV/
40 install -m 644 lib/MDV/*.pm $(PERL_VENDORLIB)/MDV/
41 ./generate-conf-file.pl
42 mkdir -p $(SYSCONFDIR)
43 install -m 644 mcc.conf $(SYSCONFDIR)
44 install -m 644 progs.conf $(mcc_dir)/
45
46 dis: dist
47 dist: clean
48 rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
49 svn export -q -rBASE . $(NAME)-$(VERSION)
50 find $(NAME)-$(VERSION) -name '*.p[lm]' -o -name control-center | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
51 tar cfa ../$(NAME)-$(VERSION).tar.lzma $(NAME)-$(VERSION)
52 rm -rf $(NAME)-$(VERSION)
53
54 changelog:
55 svn2cl --authors ../common/username.xml --accum
56 rm -f ChangeLog.bak
57
58
59 log: changelog

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.28