/[soft]/drakx-kbd-mouse-x11/trunk/Makefile
ViewVC logotype

Annotation of /drakx-kbd-mouse-x11/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 391 - (hide annotations) (download)
Thu Feb 3 13:54:58 2011 UTC (9 years, 9 months ago) by dmorgan
File size: 2356 byte(s)
Import cleaned drakx-kbd-mouse-x11
1 dmorgan 391 include Makefile.config
2    
3     DESTDIR=
4     libdir=/usr/lib
5     bindir=/usr/bin
6     sbindir=/usr/sbin
7     desktopdir=/usr/share/applications
8     autostartdir=/usr/share/autostart
9     xinitdir=/etc/X11/xinit.d
10     iconsdir=/usr/lib/libDrakX/icons
11     pixmapsdir=/usr/share/libDrakX/pixmaps
12    
13     BIN_TOOLS=
14     SBIN_TOOLS= keyboarddrake mousedrake XFdrake
15     INLIBDEST_DIRS = lib/xf86misc
16    
17     all: $(INLIBDEST_DIRS)
18     install -d auto
19     (find lib -name '*.pm'; find tools -type f) | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
20     for i in po $(INLIBDEST_DIRS); do make -C $$i; done
21    
22     check:
23     @for p in `find lib -name *.pm`; do perl -cw -I$(libdir)/libDrakX $$p || exit 1; done
24     @for p in tools/*; do perl -cw $$p || exit 1; done
25    
26     install:
27     install -d $(DESTDIR){$(libdir),$(bindir),$(sbindir),$(desktopdir),$(autostartdir),$(xinitdir),$(iconsdir),$(pixmapsdir)}
28    
29     install -d $(INLIBDEST_DIRS:%=$(DESTDIR)$(libdir)/libDrakX//%)
30     cp -a lib/*.pm $(DESTDIR)$(libdir)/libDrakX/
31     find auto -follow -name .exists -o -name "*.bs" | xargs rm -f
32     cp -rfL auto $(DESTDIR)$(libdir)/libDrakX
33    
34     (cd lib; for i in */; do install -d $(DESTDIR)$(libdir)/libDrakX/$$i ; install -m 644 $$i/*.pm $(DESTDIR)$(libdir)/libDrakX/$$i/;done)
35     (cd tools; \
36     [[ -n "$(BIN_TOOLS)" ]] && install -m755 $(BIN_TOOLS) $(DESTDIR)$(bindir); \
37     install -m755 $(SBIN_TOOLS) $(DESTDIR)$(sbindir); \
38     )
39     #install -m644 $(wildcard data/*.desktop) $(DESTDIR)$(desktopdir)
40     #install -m644 $(wildcard data/icons/*.png) $(DESTDIR)$(iconsdir)
41     install -m644 $(wildcard data/pixmaps/*.png) $(DESTDIR)$(pixmapsdir)
42     make -C po install
43    
44     clean:
45     make -C po clean
46    
47     dis: dist
48     dist:
49     rm -rf ../$(NAME)-$(VERSION).tar*
50     @if [ -e ".svn" ]; then \
51     $(MAKE) dist-svn; \
52     elif [ -e ".git" ]; then \
53     $(MAKE) dist-git; \
54     else \
55     echo "Unknown SCM (not SVN nor GIT)";\
56     exit 1; \
57     fi;
58     $(info $(NAME)-$(VERSION).tar.bz2 is ready)
59    
60     dist-svn:
61     rm -rf $(NAME)-$(VERSION)
62     svn export -q -rBASE . $(NAME)-$(VERSION)
63     tar jcf ../$(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
64     rm -rf $(NAME)-$(VERSION)
65    
66     dist-git:
67     @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | bzip2 >../$(NAME)-$(VERSION).tar.bz2;
68    
69    
70    
71     .PHONY: ChangeLog
72    
73     log: ChangeLog
74    
75     changelog: ChangeLog
76    
77     ChangeLog: ../common/username.xml
78     svn2cl --accum --authors ../../soft/common/username.xml
79     rm -f ChangeLog.bak
80     svn commit -m "Generated by cvs2cl the `LC_TIME=C date '+%d_%b'`" ChangeLog

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.28