Skip to content

Commit 4c41a5e

Browse files
committed
Only attempt to strip $TOOLS if $TOOLS is defined
1 parent 40b907d commit 4c41a5e

File tree

13 files changed

+26
-26
lines changed

13 files changed

+26
-26
lines changed

ether/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ PAGES=efbu.1 efeu.1 efru.1 efsu.1 edru.1 edsu.1 pcapdevs.1 nics.1
3131

3232
all compile: ${TOOLS}
3333
compact: compile
34-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
35-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
34+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
35+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
3636
library:
3737
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
3838
scripts:

iso15118/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ PAGES=evse.1 pev.1
2424

2525
all compile: ${TOOLS}
2626
compact: compile
27-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
28-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
27+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
28+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
2929
library:
3030
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
3131
scripts:

key/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ PAGES=hpavkey.1 hpavkeys.1 rkey.1 mac2pw.1 mac2pwd.1
2525

2626
all compile: ${TOOLS} ${LIBS}
2727
compact: compile
28-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
29-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
28+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
29+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
3030
library:
3131
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
3232
scripts:

mdio/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ PAGES=mdioblock.1 mdioblock2.1 mdiodump.1
2424

2525
all compile: ${TOOLS}
2626
compact: compile
27-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
28-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
27+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
28+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
2929
library:
3030
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
3131
scripts:

mme/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ PAGES=hpav.1 mme.1
2929

3030
all compile: ${TOOLS}
3131
compact: compile
32-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
33-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
32+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
33+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
3434
library:
3535
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
3636
scripts:

nodes/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ TOOLS=
2323

2424
all compile: ${TOOLS}
2525
compact: compile
26-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
27-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
26+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
27+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
2828
library:
2929
# install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
3030
scripts manuals:

nvm/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ PAGES=chknvm.1 chknvm2.1 nvmsplit.1 nvmmerge.1
2424

2525
all compile: ${TOOLS}
2626
compact: compile
27-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
28-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
27+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
28+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
2929
scripts:
3030
manuals:
3131
test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}

pib/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ PAGES+=pibrump.1 pibruin.1 psgraph.1 psnotch.1
2626

2727
all compile: ${TOOLS}
2828
compact: compile
29-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
30-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
29+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
30+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
3131
scripts:
3232
manuals:
3333
test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}

plc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ PAGES+=plcboot.1 plchost.1 plcID.1 plclist.1 plcrate.1 plcrule.1 plcstat.1 plcte
3434

3535
all compile: ${TOOLS}
3636
compact: compile
37-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
38-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
37+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
38+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
3939
library:
4040
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
4141
scripts:

ram/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ PAGES=config2cfg.1 sdram.1
2424

2525
all compile: ${TOOLS}
2626
compact: compile
27-
if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
28-
if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
27+
if [ ! -z ${STRIP} -a ! -z ${TOOLS} ]; then ${STRIP} ${TOOLS}; fi
28+
if [ -x /usr/local/bin/upx -a ! -z ${TOOLS} ]; then upx --best ${TOOLS}; fi
2929
library:
3030
install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
3131
scripts:

0 commit comments

Comments
 (0)