2007-12-14 19:42:38 +05:30
|
|
|
# OpenRC Makefile
|
|
|
|
# Copyright 2007 Roy Marples
|
2007-04-05 16:48:42 +05:30
|
|
|
# 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-12-29 22:55:00 +05:30
|
|
|
SUBDIR = conf.d doc 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-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-12-27 22:22:35 +05:30
|
|
|
sed -i.bak -e '/LDFLAGS += -Wl,-rpath ./ s/^/#/' /tmp/$(PKG)/src/Makefile
|
|
|
|
rm -f /tmp/$(PKG)/src/Makefile.bak
|
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 :
|