openrc/Makefile

34 lines
839 B
Makefile
Raw Normal View History

2007-11-14 19:04:42 +05:30
# Open Run Control Makefile
# 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-11-23 19:55:35 +05:30
VERSION = 0.1
PKG = $(NAME)-$(VERSION)
SUBDIR = conf.d etc init.d man net runlevels sh src
TOPDIR = .
include $(TOPDIR)/default.mk
include $(TOPDIR)/Makefile.$(OS)
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
clean::
rm -f *.bz2
dist:
$(INSTALL) -d /tmp/$(PKG)
cp -RPp . /tmp/$(PKG)
(cd /tmp/$(PKG); $(MAKE) clean)
rm -rf /tmp/$(PKG)/*.bz2 /tmp/$(PKG)/.git /tmp/$(PKG)/test
tar cvjpf $(PKG).tar.bz2 -C /tmp $(PKG)
rm -rf /tmp/$(PKG)
ls -l $(PKG).tar.bz2
# vim: set ts=4 :