Skip to content

Commit 2bd8e56

Browse files
committed
Fix up Makefile
1 parent e351703 commit 2bd8e56

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
CC = i686-echidnaos-gcc
1+
CC = cc
22
CFLAGS = -O3 -Wall -Wextra
3-
PREFIX =
3+
PREFIX = /usr/local
4+
DESTDIR =
45
C_FILES = hello.c
56
OBJ = $(C_FILES:.c=.o)
67

@@ -14,5 +15,5 @@ clean:
1415
rm -f $(OBJ) hello
1516

1617
install:
17-
mkdir -p $(PREFIX)/bin
18-
cp hello $(PREFIX)/bin/
18+
install -d $(DESTDIR)$(PREFIX)/bin
19+
install -s hello $(DESTDIR)$(PREFIX)/bin/

0 commit comments

Comments
 (0)