SKIP ability

This commit is contained in:
albert 2002-10-13 21:46:46 +00:00
parent 91cf8f1c88
commit a0a7684f4b

View File

@ -10,6 +10,11 @@
# #
# This file includes */module.mk files which add on to variables: # This file includes */module.mk files which add on to variables:
# FOO += bar/baz # FOO += bar/baz
#
#
# Set (or uncomment) SKIP if you wish to avoid something.
# For example, you may prefer the /bin/kill from util-linux or bsdutils.
VERSION := 3 VERSION := 3
SUBVERSION := 0 SUBVERSION := 0
@ -38,6 +43,8 @@ lib := $(DESTDIR)/lib/
usr/lib := $(DESTDIR)/usr/lib/ usr/lib := $(DESTDIR)/usr/lib/
usr/include := $(DESTDIR)/usr/include/ usr/include := $(DESTDIR)/usr/include/
#SKIP := $(bin)kill $(man1)kill.1
BINFILES := $(usr/bin)uptime $(usr/bin)tload $(usr/bin)free $(usr/bin)w \ BINFILES := $(usr/bin)uptime $(usr/bin)tload $(usr/bin)free $(usr/bin)w \
$(usr/bin)top $(usr/bin)vmstat $(usr/bin)watch $(usr/bin)skill \ $(usr/bin)top $(usr/bin)vmstat $(usr/bin)watch $(usr/bin)skill \
$(usr/bin)snice $(bin)kill $(sbin)sysctl \ $(usr/bin)snice $(bin)kill $(sbin)sysctl \
@ -96,10 +103,8 @@ junk := DEADJOE *~ *.o core gmon.out
# Remove $(junk) from all $(DIRS) # Remove $(junk) from all $(DIRS)
CLEAN += $(junk) $(foreach dir,$(DIRS),$(addprefix $(dir), $(junk))) CLEAN += $(junk) $(foreach dir,$(DIRS),$(addprefix $(dir), $(junk)))
# Unfortunately the program and directory name are the same. ##########
# So ps is a .PHONY that depends on ps/ps. # not maintained because it isn't really needed:
#ps: ps/ps
# @echo MAKEFILE WANTS TO MAKE PS
# #
#SRC := #SRC :=
#OBJ := $(patsubst %.c,%.o, $(filter %.c,$(SRC))) #OBJ := $(patsubst %.c,%.o, $(filter %.c,$(SRC)))
@ -110,6 +115,7 @@ CLEAN += $(junk) $(foreach dir,$(DIRS),$(addprefix $(dir), $(junk)))
# #
#%.d: %.c #%.d: %.c
# depend.sh $(CFLAGS) $< > $@ # depend.sh $(CFLAGS) $< > $@
############
# don't want to type "make procps-$(TARVERSION).tar.gz" # don't want to type "make procps-$(TARVERSION).tar.gz"
tar: $(TARFILES) tar: $(TARFILES)
@ -132,7 +138,7 @@ $(SCRFILES) : all
$(MANFILES) : all $(MANFILES) : all
$(install) --mode a=r $(notdir $@) $@ $(install) --mode a=r $(notdir $@) $@
install: $(INSTALL) install: $(filter-out $(SKIP),$(INSTALL))
cd $(usr/bin) && ($(ln-f) skill snice; $(ln-f) pgrep pkill) cd $(usr/bin) && ($(ln-f) skill snice; $(ln-f) pgrep pkill)
############ prog.c --> prog.o ############ prog.c --> prog.o