-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (24 loc) · 706 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package = sio-agent
version = 1.0.9
tarname = $(package)
distdir = $(tarname)-$(version)
all clean sio-agent:
cd src && $(MAKE) $@ AGENT_VERSION=$(version)
dist: $(distdir).tar.gz
$(distdir).tar.gz: $(distdir)
tar chof - $(distdir) | gzip -9 -c > $@
rm -rf $(distdir)
$(distdir): FORCE
mkdir -p $(distdir)/src
cp Makefile $(distdir)
cp src/Makefile $(distdir)/src
cp src/sio_agent.c $(distdir)/src
cp src/sio_agent.h $(distdir)/src
cp src/sio_local.c $(distdir)/src
cp src/sio_serial.c $(distdir)/src
cp src/sio_socket.c $(distdir)/src
cp src/logmsg.c $(distdir)/src
FORCE:
-rm $(distdir).tar.gz > /dev/null 2>&1
-rm -rf $(distdir) > /dev/null 2>&1
.PHONY: FORCE all clean dist