Commit 9f2a386c authored by Sjoerd Crooijmans's avatar Sjoerd Crooijmans
Browse files

fix problems with running the make file repeatedly

parent e2e112c0
Pipeline #46351 passed with stages
in 2 minutes and 36 seconds
......@@ -9,3 +9,6 @@ Clean System Files
*.pbc
*.prj
*.prp
# System specific files
src/_MQTT.*
......@@ -10,7 +10,7 @@ compile:
- install_clean_nightly.sh bundle-complete
- apt-get update -qq
- apt-get install -yqq build-essential autoconf libtool
- ( cd cdeps/wolfMQTT; ./autogen.sh; ./configure --enable-mqtt5 --disable-tls; make install; )
- ( cd cdeps/wolfMQTT; ./autogen.sh; ./configure --enable-mqtt5 --disable-tls; make; )
script:
- make
package-linux:
......@@ -20,7 +20,7 @@ package-linux:
- apt-get update -qq
- apt-get install -yqq build-essential autoconf libtool
script:
- ( cd cdeps/wolfMQTT; ./autogen.sh; ./configure --enable-mqtt5 --disable-tls; make install; )
- ( cd cdeps/wolfMQTT; ./autogen.sh; ./configure --enable-mqtt5 --disable-tls; make; )
- make buildLib
- tar czf MQTTClient-linux-x64.tar.gz src --transform s/src/MQTTClient/
artifacts:
......
......@@ -27,10 +27,11 @@ else
cp src-posix/* src/
endif
buildDemo:
buildDemo: buildLib
$(MAKE) -C demo
clean:
$(RM) -r $(addsuffix /Clean\ System\ Files, src src/MQTT)
$(RM) -r $(addprefix src/_MQTT., icl dcl)
$(MAKE) -C cdeps clean
$(MAKE) -C demo clean
......@@ -3,19 +3,12 @@ CLEAN_HOME?=/opt/clean
.SECONDARY: MQTTClient.prj
.PHONY: clean
ifeq ($(OS), Windows_NT)
SRC:=win
else
SRC:=posix
endif
all: MQTTClient
%.prj: %.icl
cpm project $* create $(CLEAN_HOME)/etc/iTasks.prt
cpm project $@ root ..
cpm project $@ path add ../src
cpm project $@ path add ../src-$(SRC)
%: %.prj
cpm project $^ build
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment