2007-12-14 14:12:38 +00:00
|
|
|
# OpenRC Makefile
|
|
|
|
# Copyright 2007 Roy Marples
|
2007-04-05 11:18:42 +00:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2007-11-14 13:34:42 +00:00
|
|
|
NAME = openrc
|
2007-12-08 02:50:35 +00:00
|
|
|
VERSION = 0.1
|
2007-04-05 11:18:42 +00:00
|
|
|
PKG = $(NAME)-$(VERSION)
|
|
|
|
|
2007-12-29 17:25:00 +00:00
|
|
|
SUBDIR = conf.d doc etc init.d man net runlevels sh src
|
2007-04-05 11:18:42 +00:00
|
|
|
|
|
|
|
TOPDIR = .
|
|
|
|
include $(TOPDIR)/default.mk
|
|
|
|
|
|
|
|
install::
|
2007-11-21 15:42:43 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(RC_LIB)/init.d
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(RC_LIB)/tmp
|
2007-04-05 11:18:42 +00:00
|
|
|
|
2007-11-19 20:27:36 +00:00
|
|
|
clean::
|
|
|
|
rm -f *.bz2
|
|
|
|
|
|
|
|
dist:
|
|
|
|
$(INSTALL) -d /tmp/$(PKG)
|
|
|
|
cp -RPp . /tmp/$(PKG)
|
2007-11-27 16:13:42 +00:00
|
|
|
(cd /tmp/$(PKG); git clean; $(MAKE) clean)
|
2007-11-19 20:27:36 +00:00
|
|
|
rm -rf /tmp/$(PKG)/*.bz2 /tmp/$(PKG)/.git /tmp/$(PKG)/test
|
2007-12-08 02:50:35 +00:00
|
|
|
rm -rf /tmp/$(PKG)/.gitignore /tmp/$(PKG)/src/.gitignore
|
2007-12-27 16:52:35 +00:00
|
|
|
sed -i.bak -e '/LDFLAGS += -Wl,-rpath ./ s/^/#/' /tmp/$(PKG)/src/Makefile
|
|
|
|
rm -f /tmp/$(PKG)/src/Makefile.bak
|
2007-11-19 20:27:36 +00:00
|
|
|
tar cvjpf $(PKG).tar.bz2 -C /tmp $(PKG)
|
|
|
|
rm -rf /tmp/$(PKG)
|
|
|
|
ls -l $(PKG).tar.bz2
|
2007-04-05 11:18:42 +00:00
|
|
|
|
|
|
|
# vim: set ts=4 :
|