/[soft]/drakx-net/trunk/Makefile
ViewVC logotype

Contents of /drakx-net/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 601 - (show annotations) (download)
Tue Feb 22 22:56:06 2011 UTC (10 years, 7 months ago) by dmorgan
File size: 2038 byte(s)
Merge mdv commit 271931 :
    - Move autostart desktop files to /etc/xdg/autostart
    - Remove xinit.d script: non-xdg-autostart compliant desktops should use the
      xdg-compliance-autostart package if they want to run drakx-net and others

1 NAME = drakx-net
2 VERSION = 0.92
3
4 DESTDIR=
5 libdir=/usr/lib
6 bindir=/usr/bin
7 sbindir=/usr/sbin
8 desktopdir=/usr/share/applications
9 autostartdir=/etc/xdg/autostart
10 iconsdir=/usr/lib/libDrakX/icons
11 pixmapsdir=/usr/share/libDrakX/pixmaps
12 pamdir=/etc/pam.d
13 consoleappsdir=/etc/security/console.apps
14
15 BIN_TOOLS= net_applet
16 SBIN_TOOLS=drakconnect drakfirewall drakgw drakhosts drakids drakinvictus draknetprofile draknfs drakproxy drakroam draksambashare drakvpn draknetcenter
17
18 all:
19 (find lib -name '*.pm'; find bin -type f) | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
20 make -C po
21 make -C data
22
23 check:
24 @for p in `find lib -name *.pm`; do perl -cw -I$(libdir)/libDrakX $$p || exit 1; done
25 @for p in bin/*; do perl -cw $$p || exit 1; done
26
27 install:
28 install -d $(DESTDIR){$(libdir),$(bindir),$(sbindir),$(desktopdir),$(autostartdir),$(iconsdir),$(pixmapsdir),$(pamdir),$(consoleappsdir)}
29 cp -a lib/* $(DESTDIR)$(libdir)/libDrakX/
30 find $(DESTDIR) -name .perl_checker -exec rm {} \;
31 (cd bin; \
32 install -m755 $(BIN_TOOLS) $(DESTDIR)$(bindir); \
33 install -m755 $(SBIN_TOOLS) $(DESTDIR)$(sbindir); \
34 )
35 install -m644 $(wildcard data/*.desktop) $(DESTDIR)$(desktopdir)
36 install -m644 $(wildcard data/icons/*.png) $(DESTDIR)$(iconsdir)
37 install -m644 $(wildcard data/pixmaps/*.png) $(DESTDIR)$(pixmapsdir)
38 perl -pe 's/\s+--force//g' $(DESTDIR)$(desktopdir)/net_applet.desktop > $(DESTDIR)$(autostartdir)/net_applet.desktop
39 make -C po install
40
41 cleandist:
42 rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
43
44 dis: cleandist
45 rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
46 svn export -q -rBASE . $(NAME)-$(VERSION)
47 tar cfj ../$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
48 rm -rf $(NAME)-$(VERSION)
49
50 gitdist: cleandist
51 git archive --prefix $(NAME)-$(VERSION)/ HEAD | bzip2 -9 > ../$(NAME)-$(VERSION).tar.bz2
52 rm -rf $(NAME)-$(VERSION)
53
54 clean:
55 make -C po clean
56
57 .PHONY: ChangeLog log changelog
58
59 log: ChangeLog
60
61 changelog: ChangeLog
62
63 ChangeLog:
64 svn2cl --accum --authors ../../soft/common/username.xml
65 rm -f *.bak

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.28