Skip to content

Commit 629f1b4

Browse files
committed
fixed binary name for travis
1 parent 5bffef0 commit 629f1b4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ before_install:
44

55
script:
66
- make clean
7-
- make
87
- make -f Makefile.armhf clean
9-
- make -f Makefile.armhf
8+
- make
9+
- make -f Makefile.armhf SUFFIX=.arm
1010

1111
deploy:
1212
provider: releases
1313
api_key:
1414
secure: j91QOpll0KaDDBGgypJAtjDfoOLlJDXyNkpxADoogyukzOAmpVAsMJ5dN608cO5kwTuehVQtp76KvA/UasB3fxIFDlFy46KDqMlexpXKmYVMzo5JG7tdQbV81BJcpW30f3Nyp93T+ti8E+ofWXG4VC32lUUGs1eNV/UXU9nuQW7SqVIH9dnGU6aM8TohTN9xojUryLFEy+Plm7E1+lqdpNGxIlaViUiboqBtxgdvH10sNSmSQGIYRcmILJQcEBKVf0Ie41HWcZ5j/V8I51lMeNSlp1LxqhUQHlijMsqCcP/YjeUv+8I2Kb/Yp7ScR5aPzHl+SOxcMYwAj+wVaqs68e5trTT3euYIop+471SMMnxfbSTubwKCEuCYRKgkEt/8ddI8ighpbOZfycCE1ZV7QK7yTgmXw0bVWDsNOhnPSkfPs+Z33d2JQpvssY9ZCY+6bObUAVF9EiqnP3PtYjkespSPzWeBSkmVz9UB/MGdaJhSB66cS8w3xX10Z7ZWZymsgjgb3rwup+BOr1YWXAd7cD/0ecnNOyMhFQgmady2p8YfqLxgmutDHD1fjXTsNwXG/MeBAATMVY5zaOSwYzpXGbyBHoqap18YfnLq9L9astan1xG7i4MA7DhsdRAhhWqbUZ0vM4MxtrfD7rKmvHmor1PNgcqcvoZgRB7fkYHTXZk=
1515
file:
16-
- arm/nbnsd
17-
- native/nbnsd
16+
- out/nbnsd.arm
17+
- out/nbnsd
1818
skip_cleanup: true
1919
on:
2020
repo: cfstras/nbnsd

Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
CFLAGS += -Wall -Wno-cpp -O2 -std=c99
22

3-
OUT := native
4-
PREFIX :=
3+
OUT := out
4+
PREFIX :=
5+
SUFFIX :=
56

67
.PHONY: clean install
78

89

9-
$(OUT)/nbnsd: nbnsd.c Makefile
10+
$(OUT)/nbnsd$(SUFFIX): nbnsd.c Makefile
1011
@mkdir -p $(OUT)
1112
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
1213

1314
clean:
14-
rm -f nbnsd $(OUT)/nbnsd
15+
rm -vf nbnsd $(OUT)/*
1516

1617
install: $(OUT)/nbnsd
1718
install -m 755 $< $(PREFIX)/usr/bin

Makefile.armhf

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CC = arm-linux-gnueabihf-gcc
2-
OUT = arm
1+
CC := arm-linux-gnueabihf-gcc
32
include Makefile
43

0 commit comments

Comments
 (0)