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

Annotation of /drakx-net/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.30