blob: a02f1613a09e34cfc469a8735eea6d314b209dac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
NAME = drak3d
VERSION = 1.33
DESTDIR=
libdir=/usr/lib
bindir=/usr/bin
libexecdir=/usr/libexec
desktopdir=/usr/share/applications
autostartdir=/usr/share/autostart
xinitdir=/etc/X11/xinit.d
iconsdir=/usr/lib/libDrakX/icons
pixmapsdir=/usr/share/libDrakX/pixmaps
BIN_TOOLS= drak3d
all:
(find lib -name '*.pm'; find bin -type f) | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
make -C po
make -C polkit/policy
check:
@for p in `find lib -name *.pm`; do perl -cw -I$(libdir)/libDrakX $$p || exit 1; done
@for p in bin/*; do perl -cw $$p || exit 1; done
install:
install -d $(DESTDIR){$(libdir),$(bindir),$(libexecdir),$(desktopdir),$(autostartdir),$(xinitdir),$(iconsdir),$(pixmapsdir)}
cp -a lib/* $(DESTDIR)$(libdir)/libDrakX/
(cd bin; \
install -m755 $(BIN_TOOLS) $(DESTDIR)$(libexecdir); \
install -m755 ../polkit/wrappers/* $(DESTDIR)$(bindir); \
)
#install -m644 $(wildcard data/*.desktop) $(DESTDIR)$(desktopdir)
install -m644 $(wildcard data/icons/*.png) $(DESTDIR)$(iconsdir)
#install -m644 $(wildcard data/pixmaps/*.png) $(DESTDIR)$(pixmapsdir)
#perl -pe 's/\s+--force//g' $(DESTDIR)$(desktopdir)/net_applet.desktop > $(DESTDIR)$(autostartdir)/net_applet.desktop
make -C po install
make -C polkit/policy install
clean:
make -C po clean
make -C polkit/policy clean
dist: dis
dis:
rm -rf ../$(NAME)-$(VERSION)*.tar* $(NAME)-$(VERSION)
@git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz;
$(info $(NAME)-$(VERSION).tar.xz is ready)
|