Skip to content

Commit 1932e80

Browse files
author
Nate Fisher
committed
Update makefile to work with macports; formatting change to usage output
1 parent d227012 commit 1932e80

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ BUILD_DIR =build
33
TESTS_DIR =tests
44
GTEST_DIR =googletest/googletest
55
GTEST_INC =-I$(GTEST_DIR)/include -I$(GTEST_DIR)/include/gtest -I$(GTEST_DIR)/include/gtest/internal
6-
INSTALL_DIR =/opt/local/bin
6+
INSTALL_DIR =opt/local/bin
77

88
all : $(BUILD_DIR)/rel/smlr
99

@@ -12,7 +12,7 @@ test : $(BUILD_DIR)/rel/smlr_ut
1212
@$(BUILD_DIR)/rel/smlr_ut
1313

1414
install : $(BUILD_DIR)/rel/smlr
15-
cp $(BUILD_DIR)/rel/smlr $(INSTALL_DIR)/smlr
15+
cp $^ $(DESTDIR)/$(INSTALL_DIR)
1616

1717
clean :
1818
rm -rf $(BUILD_DIR)

src/main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ void usage() {
111111
printf("\t\tCan be either `left` or `right`\n");
112112
printf("\t\tDefault value is middle\n");
113113

114-
printf("\nEXAMPLES\n");
115-
printf("git rev-parse --abbrev-ref HEAD | smlr -s 10 -a left\n");
116-
printf(" > feat...-13\n");
117-
printf("echo \"abcdefghijkl\" | smlr -s 10 -a right\n");
118-
printf(" > ...ghijkl\n");
119-
printf("date | smlr -s 10\n");
114+
printf("\nExamples:\n");
115+
printf(" > git rev-parse --abbrev-ref HEAD | smlr -s 10 -a left\n");
116+
printf(" > feat...-13\n\n");
117+
printf(" > echo \"abcdefghijkl\" | smlr -s 10 -a right\n");
118+
printf(" > ...ghijkl\n\n");
119+
printf(" > date | smlr -s 10\n");
120120
printf(" > Thu ...017\n\n");
121121

122122
}

0 commit comments

Comments
 (0)