Our build chain now works with GNU and BSD make implementations

This commit is contained in:
Roy Marples
2007-11-19 13:48:43 +00:00
parent 2ef9c5c520
commit 5f8cf73b22
20 changed files with 91 additions and 104 deletions

View File

@@ -3,25 +3,14 @@
# Distributed under the terms of the GNU General Public License v2
NAME = openrc
VERSION = 1.0pre1
VERSION = 1.0
PKG = $(NAME)-$(VERSION)
SUBDIRS = etc conf.d init.d man net sh src
ifeq ($(OS),)
OS=$(shell uname -s)
ifneq ($(OS),Linux)
OS=BSD
endif
endif
NET_LO = net.lo0
ifeq ($(OS),Linux)
NET_LO = net.lo
endif
SUBDIR = conf.d etc init.d man net sh src
TOPDIR = .
include $(TOPDIR)/default.mk
include $(TOPDIR)/Makefile.$(OS)
install::
# Don't install runlevels if they already exist