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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 391 by dmorgan, Thu Feb 3 13:54:58 2011 UTC revision 912 by anssi, Sun Apr 17 14:01:57 2011 UTC
# Line 4  DESTDIR= Line 4  DESTDIR=
4  libdir=/usr/lib  libdir=/usr/lib
5  bindir=/usr/bin  bindir=/usr/bin
6  sbindir=/usr/sbin  sbindir=/usr/sbin
7    rootsbindir=/sbin
8  desktopdir=/usr/share/applications  desktopdir=/usr/share/applications
9  autostartdir=/usr/share/autostart  autostartdir=/usr/share/autostart
10  xinitdir=/etc/X11/xinit.d  xinitdir=/etc/X11/xinit.d
# Line 12  pixmapsdir=/usr/share/libDrakX/pixmaps Line 13  pixmapsdir=/usr/share/libDrakX/pixmaps
13    
14  BIN_TOOLS=  BIN_TOOLS=
15  SBIN_TOOLS= keyboarddrake mousedrake XFdrake  SBIN_TOOLS= keyboarddrake mousedrake XFdrake
16    ROOTSBIN_TOOLS = display_driver_helper
17  INLIBDEST_DIRS = lib/xf86misc  INLIBDEST_DIRS = lib/xf86misc
18    
19  all: $(INLIBDEST_DIRS)  all: $(INLIBDEST_DIRS)
# Line 21  all: $(INLIBDEST_DIRS) Line 23  all: $(INLIBDEST_DIRS)
23    
24  check:  check:
25          @for p in `find lib -name *.pm`; do perl -cw -I$(libdir)/libDrakX $$p || exit 1; done          @for p in `find lib -name *.pm`; do perl -cw -I$(libdir)/libDrakX $$p || exit 1; done
26          @for p in tools/*; do perl -cw $$p || exit 1; done          @for p in tools/*; do head -n1 $$p | grep perl || continue; perl -cw $$p || exit 1; done
27    
28  install:  install:
29          install -d $(DESTDIR){$(libdir),$(bindir),$(sbindir),$(desktopdir),$(autostartdir),$(xinitdir),$(iconsdir),$(pixmapsdir)}          install -d $(DESTDIR){$(libdir),$(bindir),$(sbindir),$(rootsbindir),$(desktopdir),$(autostartdir),$(xinitdir),$(iconsdir),$(pixmapsdir)}
30    
31          install -d $(INLIBDEST_DIRS:%=$(DESTDIR)$(libdir)/libDrakX//%)          install -d $(INLIBDEST_DIRS:%=$(DESTDIR)$(libdir)/libDrakX//%)
32          cp -a lib/*.pm $(DESTDIR)$(libdir)/libDrakX/          cp -a lib/*.pm $(DESTDIR)$(libdir)/libDrakX/
# Line 34  install: Line 36  install:
36          (cd lib; for i in */; do install -d $(DESTDIR)$(libdir)/libDrakX/$$i ; install -m 644 $$i/*.pm $(DESTDIR)$(libdir)/libDrakX/$$i/;done)          (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; \          (cd tools; \
38            [[ -n "$(BIN_TOOLS)" ]] && install -m755 $(BIN_TOOLS) $(DESTDIR)$(bindir); \            [[ -n "$(BIN_TOOLS)" ]] && install -m755 $(BIN_TOOLS) $(DESTDIR)$(bindir); \
39              [[ -n "$(ROOTSBIN_TOOLS)" ]] && install -m755 $(ROOTSBIN_TOOLS) $(DESTDIR)$(rootsbindir); \
40            install -m755 $(SBIN_TOOLS) $(DESTDIR)$(sbindir); \            install -m755 $(SBIN_TOOLS) $(DESTDIR)$(sbindir); \
41          )          )
42          #install -m644 $(wildcard data/*.desktop) $(DESTDIR)$(desktopdir)          #install -m644 $(wildcard data/*.desktop) $(DESTDIR)$(desktopdir)

Legend:
Removed from v.391  
changed lines
  Added in v.912

  ViewVC Help
Powered by ViewVC 1.1.28