Skip to content

Instantly share code, notes, and snippets.

@tsibley
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsibley/ecec8d52c417221f480a to your computer and use it in GitHub Desktop.
Save tsibley/ecec8d52c417221f480a to your computer and use it in GitHub Desktop.
Alternate Makefile to only build and install a select few of the moreutils package
BINS := sponge pee
PERLSCRIPTS := chronic
MANS := $(BINS:=.1) $(PERLSCRIPTS:=.1)
PREFIX := /usr/local
selected := PREFIX=$(PREFIX) BINS="$(BINS)" PERLSCRIPTS="$(PERLSCRIPTS)" MANS="$(MANS)"
all:
make all $(selected)
install:
make install $(selected)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment