/[soft]/drak3d/trunk/Makefile
ViewVC logotype

Contents of /drak3d/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2935 - (show annotations) (download)
Sun Feb 12 10:53:09 2012 UTC (12 years, 7 months ago) by julien
File size: 1935 byte(s)
- fix broken translation (patch from Jaromír Cápík)

1 NAME = drak3d
2 VERSION = 1.32
3
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 xinitdir=/etc/X11/xinit.d
11 iconsdir=/usr/lib/libDrakX/icons
12 pixmapsdir=/usr/share/libDrakX/pixmaps
13
14 BIN_TOOLS=
15 SBIN_TOOLS=drak3d
16
17 all:
18 (find lib -name '*.pm'; find bin -type f) | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
19 make -C po
20
21 check:
22 @for p in `find lib -name *.pm`; do perl -cw -I$(libdir)/libDrakX $$p || exit 1; done
23 @for p in bin/*; do perl -cw $$p || exit 1; done
24
25 install:
26 install -d $(DESTDIR){$(libdir),$(bindir),$(sbindir),$(desktopdir),$(autostartdir),$(xinitdir),$(iconsdir),$(pixmapsdir)}
27 cp -a lib/* $(DESTDIR)$(libdir)/libDrakX/
28 (cd bin; \
29 [[ -n "$(BIN_TOOLS)" ]] && install -m755 $(BIN_TOOLS) $(DESTDIR)$(bindir); \
30 install -m755 $(SBIN_TOOLS) $(DESTDIR)$(sbindir); \
31 )
32 #install -m644 $(wildcard data/*.desktop) $(DESTDIR)$(desktopdir)
33 install -m644 $(wildcard data/icons/*.png) $(DESTDIR)$(iconsdir)
34 #install -m644 $(wildcard data/pixmaps/*.png) $(DESTDIR)$(pixmapsdir)
35 #perl -pe 's/\s+--force//g' $(DESTDIR)$(desktopdir)/net_applet.desktop > $(DESTDIR)$(autostartdir)/net_applet.desktop
36 make -C po install
37
38 clean:
39 make -C po clean
40
41 dist: dis
42 dis:
43 rm -rf ../$(NAME)-$(VERSION)*.tar* $(NAME)-$(VERSION)
44 @if [ -e ".svn" ]; then \
45 $(MAKE) dist-svn; \
46 elif [ -e ".git" ]; then \
47 $(MAKE) dist-git; \
48 else \
49 echo "Unknown SCM (not SVN nor GIT)";\
50 exit 1; \
51 fi;
52 $(info $(NAME)-$(VERSION).tar.lzma is ready)
53
54 dist-svn:
55 svn export -q -rBASE . $(NAME)-$(VERSION)
56 tar cjf ../$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
57 rm -rf $(NAME)-$(VERSION)
58
59 dist-git:
60 @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | bzip2 >../$(NAME)-$(VERSION).tar.bzip2;
61
62 .PHONY: ChangeLog log changelog
63
64 log: ChangeLog
65
66 changelog: ChangeLog
67
68 ChangeLog:
69 svn2cl --accum --authors ../../soft/common/username.xml
70 rm -f *.bak

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.30