makemaker-defaults.mk: fallback COMPONENT_PROJECT_URL to dist
[oi-userland.git] / components / developer / sloccount / patches / prefix.patch
blob572c3d8345c2fa181f8a4e400075d8814cb261d0
1 --- sloccount-2.26/makefile.orig
2 +++ sloccount-2.26/makefile
3 @@ -28,7 +28,7 @@
4 # Set this for where to store the man pages and executables.
5 # If you want to store this as part of an official distribution,
6 # change this to "/usr":
7 -PREFIX=/usr/local
8 +PREFIX?=/usr/local
10 # Set "EXE_SUFFIX" to ".exe" if you're running on Windows, like this:
11 # EXE_SUFFIX=.exe
12 @@ -37,14 +37,14 @@
13 # Set this to your C compiler, if it's not "gcc"; a likely alternative is "cc".
14 # The "-Wall" option turns on warnings in gcc. gcc users might also want
15 # to consider using "-Werror", which turns warnings into errors.
16 -CC=gcc -Wall
17 +CC?=gcc -Wall
19 # Set this to the name of your "install" program. On some systems,
20 # "install -C" would be useful (so unchanged files won't be modified),
21 # but not all systems support this install option. "Install" should work
22 # for any Unix-like system as well as for Cygwin.
23 # "INSTALL_A_DIR" is the command to create a directory in the first place.
24 -INSTALL=install
25 +INSTALL?=install
26 INSTALL_A_DIR=$(INSTALL) -d
28 # Set this to the name of the program to create RPMs.
29 @@ -164,6 +164,7 @@
32 install_programs: all
33 + $(INSTALL_A_DIR) $(INSTALL_DIR)
34 $(INSTALL) $(EXECUTABLES) $(INSTALL_DIR)
36 uninstall_programs: