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