summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..adbead4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+NAME = drakguard
+VERSION = 0.7.8
+
+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
+
+dis:
+ rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
+ svn export -q -rBASE . $(NAME)-$(VERSION)
+ find $(NAME)-$(VERSION) -name .svnignore |xargs rm -rf
+ tar cfY ../$(NAME)-$(VERSION).tar.lzma $(NAME)-$(VERSION)
+ rm -rf $(NAME)-$(VERSION)
+
+changelog:
+ svn2cl --authors ../common/username.xml --accum
+ rm -f ChangeLog.bak
+
+log: changelog