openrc/Makefile

41 lines
999 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
VERSION = 1.0
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 $$?
diststatus:
if test -d .svn ; then \
svnfiles=`svn status 2>&1 | egrep -v '^(U|P)'` ; \
if test "x$$svnfiles" != "x" ; then \
echo "Refusing to package tarball until svn is in sync:" ; \
echo "$$svnfiles" ; \
echo "make distforce to force packaging" ; \
exit 1 ; \
fi \
fi
distit:
2007-04-13 20:06:30 +05:30
rm -rf /tmp/$(PKG)
2007-04-13 20:03:22 +05:30
svn export . /tmp/$(PKG)
$(MAKE) -C /tmp/$(PKG) clean
tar -C /tmp -cvjpf /tmp/$(PKG).tar.bz2 $(PKG)
2007-04-13 20:06:30 +05:30
rm -rf /tmp/$(PKG)
2007-04-13 20:29:51 +05:30
ls -l /tmp/$(PKG).tar.bz2
dist: diststatus distit
# vim: set ts=4 :