SVN: geninitrd/trunk/Makefile

glen glen at pld-linux.org
Thu Dec 14 20:47:30 CET 2006


Author: glen
Date: Thu Dec 14 20:47:29 2006
New Revision: 8107

Modified:
   geninitrd/trunk/Makefile
Log:
Do not make install by default. Some cleanups and stuff.

Modified: geninitrd/trunk/Makefile
==============================================================================
--- geninitrd/trunk/Makefile	(original)
+++ geninitrd/trunk/Makefile	Thu Dec 14 20:47:29 2006
@@ -1,20 +1,22 @@
-VERSION=$(shell awk '/^RCSID=/ {print $$3}' geninitrd)
-FILES=Makefile geninitrd.sysconfig geninitrd geninitrd.8 geninitrd.8.xml ChangeLog
-BUILDROOT=$(DESTDIR)
+VERSION		:= $(shell awk '/^RCSID=/ {print $$3}' geninitrd)
+FILES		:= Makefile geninitrd.sysconfig geninitrd geninitrd.8 geninitrd.8.xml ChangeLog
+prefix		:= /usr
+mandir		:= $(prefix)/share/man
+sbindir		:= /sbin
+sysconfdir	:= /etc/sysconfig
 
-mandir=/usr/share/man
-sysconfdir=/etc/sysconfig
+all: geninitrd.8
 
 install:
-	install -d $(BUILDROOT)/sbin $(BUILDROOT)$(mandir)/man8 $(BUILDROOT)$(sysconfdir)
-	install -m755 geninitrd $(BUILDROOT)/sbin/geninitrd
-	install -m644 geninitrd.8 $(BUILDROOT)/$(mandir)/man8/geninitrd.8
-	install -m644 geninitrd.sysconfig $(BUILDROOT)/$(sysconfdir)/geninitrd
+	install -d $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir)/man8 $(DESTDIR)$(sysconfdir)
+	install geninitrd $(DESTDIR)$(sbindir)/geninitrd
+	install -m644 geninitrd.8 $(DESTDIR)$(mandir)/man8/geninitrd.8
+	install -m644 geninitrd.sysconfig $(DESTDIR)$(sysconfdir)/geninitrd
 
 geninitrd.8: geninitrd.8.xml
-	refentry2man <geninitrd.8.xml >geninitrd.8
+	refentry2man < geninitrd.8.xml > geninitrd.8
 
-dist:	geninitrd-$(VERSION).tar.gz 
+dist: geninitrd-$(VERSION).tar.gz
 
 geninitrd-$(VERSION).tar.gz: $(FILES)
 	-rm -f *.tar.gz


More information about the pld-cvs-commit mailing list