2007-11-14 19:04:42 +05:30
|
|
|
# Open Run Control Makefile
|
2007-04-05 16:48:42 +05:30
|
|
|
# Copyright 2006-2007 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2007-11-14 19:04:42 +05:30
|
|
|
NAME = openrc
|
2007-12-08 08:20:35 +05:30
|
|
|
VERSION = 0.1
|
2007-04-05 16:48:42 +05:30
|
|
|
PKG = $(NAME)-$(VERSION)
|
|
|
|
|
2007-11-19 22:12:28 +05:30
|
|
|
SUBDIR = conf.d etc init.d man net runlevels sh src
|
2007-04-05 16:48:42 +05:30
|
|
|
|
|
|
|
TOPDIR = .
|
|
|
|
include $(TOPDIR)/default.mk
|
2007-11-19 19:18:43 +05:30
|
|
|
include $(TOPDIR)/Makefile.$(OS)
|
2007-04-05 16:48:42 +05:30
|
|
|
|
|
|
|
install::
|
2007-09-19 19:23:40 +05:30
|
|
|
ln -snf ../../$(RC_LIB)/sh/net.sh $(DESTDIR)/etc/init.d/$(NET_LO) || exit $$?
|
|
|
|
ln -snf ../../$(RC_LIB)/sh/functions.sh $(DESTDIR)/etc/init.d || exit $$?
|
2007-11-21 21:12:43 +05:30
|
|
|
$(INSTALL) -d $(DESTDIR)$(RC_LIB)/init.d
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(RC_LIB)/tmp
|
2007-04-05 16:48:42 +05:30
|
|
|
|
2007-11-20 01:57:36 +05:30
|
|
|
clean::
|
|
|
|
rm -f *.bz2
|
|
|
|
|
|
|
|
dist:
|
|
|
|
$(INSTALL) -d /tmp/$(PKG)
|
|
|
|
cp -RPp . /tmp/$(PKG)
|
2007-11-27 21:43:42 +05:30
|
|
|
(cd /tmp/$(PKG); git clean; $(MAKE) clean)
|
2007-11-20 01:57:36 +05:30
|
|
|
rm -rf /tmp/$(PKG)/*.bz2 /tmp/$(PKG)/.git /tmp/$(PKG)/test
|
2007-12-08 08:20:35 +05:30
|
|
|
rm -rf /tmp/$(PKG)/.gitignore /tmp/$(PKG)/src/.gitignore
|
2007-11-20 01:57:36 +05:30
|
|
|
tar cvjpf $(PKG).tar.bz2 -C /tmp $(PKG)
|
|
|
|
rm -rf /tmp/$(PKG)
|
|
|
|
ls -l $(PKG).tar.bz2
|
2007-04-05 16:48:42 +05:30
|
|
|
|
|
|
|
# vim: set ts=4 :
|