Make a test script to do test builds with

This commit is contained in:
Juhani Krekelä 2019-07-13 19:44:45 +03:00
parent 4b63854c85
commit 849c9d6fe0
2 changed files with 5 additions and 2 deletions

View File

@ -28,8 +28,7 @@ arp-request: arp-request.o
ethermess: ethermess.py
# I'm not sure you can make this work 100% with traditional make
#$(SED) "2s/__LIBEXECDIR__/'`printf "%s" "$(LIBEXECDIR)" | sed "s,\\\\\\\\,\\\\\\\\\\\\\\\\,g;s,/,\\\\\\\\/,g;s,"'"'",\\\\\\\\"'"'",g"`'/" < $< > $@
$(SED) "2s/__LIBEXECDIR__/'.'/" < $< > $@ #debg
$(SED) "2s/__LIBEXECDIR__/'`printf "%s" "$(LIBEXECDIR)" | sed "s,\\\\\\\\,\\\\\\\\\\\\\\\\,g;s,/,\\\\\\\\/,g;s,"'"'",\\\\\\\\"'"'",g"`'/" < $< > $@
chmod +x $@
ethermess-backend: ethermess-backend.o

4
test.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
sudo true &&
LIBEXECDIR=. make &&
./ethermess "$@"