Browse Source

makefile: If V is set show executed commands.

Georgi Chorbadzhiyski 12 years ago
parent
commit
832ada08db
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      Makefile

+ 5
- 3
Makefile View File

@@ -1,6 +1,7 @@
1 1
 CC = $(CROSS)$(TARGET)cc
2 2
 STRIP = $(CROSS)$(TARGET)strip
3 3
 MKDEP = $(CC) -M -o $*.d $<
4
+RM = /bin/rm -f
4 5
 
5 6
 BUILD_ID = $(shell date +%F_%R)
6 7
 VERSION = $(shell cat RELEASE)
@@ -9,6 +10,10 @@ ifeq "$(GIT_VER)" ""
9 10
 GIT_VER = "release"
10 11
 endif
11 12
 
13
+ifndef V
14
+Q = @
15
+endif
16
+
12 17
 CFLAGS ?= -O2 -ggdb \
13 18
  -W -Wall -Wextra \
14 19
  -Wshadow -Wformat-security -Wstrict-prototypes
@@ -16,9 +21,6 @@ CFLAGS ?= -O2 -ggdb \
16 21
 DEFS = -DBUILD_ID=\"$(BUILD_ID)\" \
17 22
  -DVERSION=\"$(VERSION)\" -DGIT_VER=\"$(GIT_VER)\"
18 23
 
19
-RM = /bin/rm -f
20
-Q = @
21
-
22 24
 PREFIX ?= /usr/local
23 25
 
24 26
 INSTALL_PRG = tsdecrypt

Loading…
Cancel
Save