Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Redefine your PREFIX via commandline #8

Merged
merged 2 commits into from

2 participants

@gvangool

Redefine the PREFIX via command-line, for easier install into a
different location:

PREFIX=~ make install
gvangool added some commits
@gvangool gvangool Redefine your PREFIX via commandline
Redefine the PREFIX via command-line, for easier install into a
different location:

    PREFIX=~ make install
98762c1
@gvangool gvangool Added documentation on how to use PREFIX
b692e8c
@tj
Owner
tj commented

you can always do make PREFIX=foo as well, but i'll merge

@tj tj merged commit 6b263c7 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 12, 2011
  1. @gvangool

    Redefine your PREFIX via commandline

    gvangool authored
    Redefine the PREFIX via command-line, for easier install into a
    different location:
    
        PREFIX=~ make install
  2. @gvangool
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +1 −1  Makefile
  2. +6 −0 Readme.md
View
2  Makefile
@@ -1,6 +1,6 @@
CFLAGS = -std=c99 -D_POSIX_C_SOURCE=199309L -Wall -pedantic
-PREFIX = /usr/local
+PREFIX ?= /usr/local
watch: src/watch.c
$(CC) $< $(CFLAGS) -o $@
View
6 Readme.md
@@ -23,6 +23,12 @@ Options:
$ make install
```
+Or in your local bin (`~/bin`)
+
+```
+$ PREFIX=~ make install
+```
+
## About
This project is very similar to original [watch(1)](http://linux.die.net/man/1/watch) implemented in 1991, differences include:
Something went wrong with that request. Please try again.