summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3c1e469c8cd12fa7d3d096d13872c5f0f1be3f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
NAME = drakguard
VERSION = 1.7

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:
	@git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz  > $(NAME)-$(VERSION).tar.xz;
	$(info $(NAME)-$(VERSION).tar.xz is ready)