Makefile
changeset 15 ae5ccba87bfc
parent 13 d9694ca1b7fc
child 18 9032fd09c274
--- a/Makefile	Wed Feb 11 11:08:08 2009 +0000
+++ b/Makefile	Mon Mar 23 13:02:07 2009 +0100
@@ -8,14 +8,15 @@
 all:	$(bin_SCRIPTS)
 
 install:	all
-	install -d $(DESTDIR)/$(sysconfdir)
-	test -f $(DESTDIR)/$(sysconfdir)/config.pm \
-		|| install -m644 config.pm $(DESTDIR)/$(sysconfdir)/config.pm
-	install -d $(bindir)
-	install -m755 $(bin_SCRIPTS) $(DESTDIR)/$(bindir)/
+	install -d -m 0755 $(DESTDIR)/$(sysconfdir)
+	tools/chkconfig $(DESTDIR)/$(sysconfigdir)/config.pm \
+		&& install -m 644 config.pm $(DESTDIR)/$(sysconfdir)/config.pm
+	tools/signconfig $(DESTDIR)/$(sysconfigdir)/config.pm
+	install -d -m 0755 $(bindir)
+	install -m 0755 $(bin_SCRIPTS) $(DESTDIR)/$(bindir)/
 
-	install -d $(DESTDIR)/usr/share/perl5/Logbuch
-	install -m644 Logbuch/HG.pm $(DESTDIR)/usr/share/perl5/Logbuch/
+	install -d -m 0755 $(DESTDIR)/usr/share/perl5/Logbuch
+	install -m 0644 Logbuch/HG.pm $(DESTDIR)/usr/share/perl5/Logbuch/
 
 	cd $(DESTDIR)/$(bindir) && ln -sf log logbuch