blob: 56bde3990e67fa1674931f5fb5cfcfc73294b2c7 (
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 = drakguard
VERSION = 0.7.10
DESTDIR=
sbindir=/usr/sbin
iconsdir=/usr/lib/libDrakX/icons
SBIN_TOOLS=drakguard
all:
(find lib -name '*.pm'; find bin -type f) | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
make -C po
install:
install -d $(DESTDIR){$(sbindir),$(iconsdir)}
find $(DESTDIR) -name .perl_checker -exec rm {} \;
(cd bin; install -m755 $(SBIN_TOOLS) $(DESTDIR)$(sbindir) )
install -m644 $(wildcard data/icons/*.png) $(DESTDIR)$(iconsdir)
make -C po install
dist-svn:
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
svn export -q -rBASE . $(NAME)-$(VERSION)
find $(NAME)-$(VERSION) -name .svnignore |xargs rm -rf
tar cfa ../$(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION)
rm -rf $(NAME)-$(VERSION)
dist-git:
@git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz;
dist:
rm -rf ../$(NAME)-$(VERSION).tar*
@if [ -e ".svn" ]; then \
$(MAKE) dist-svn; \
elif [ -e ".git" ]; then \
$(MAKE) dist-git; \
else \
echo "Unknown SCM (not SVN nor GIT)";\
exit 1; \
fi;
$(info $(NAME)-$(VERSION).tar.xz is ready)
changelog:
svn2cl --authors ../common/username.xml --accum
rm -f ChangeLog.bak
log: changelog
|