mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-14 04:09:43 +03:00
fixed target dist
This commit is contained in:
1 parent
23b58c3d1d
commit
c24f0d2436
3 files changed
+19
-15
No files matched your search
+9
-7
@@ -26,6 +26,7 @@ MKDIR = mkdir
|
||||
|
||||
abs_builddir = @abs_builddir@
|
||||
top_builddir = @top_builddir@
|
||||
package = @PACKAGE_TARNAME@-@PACKAGE_VERSION@
|
||||
|
||||
# files and flags
|
||||
SOURCES:= pdu.c net.c debug.c encode.c uri.c list.c subscribe.c str.c
|
||||
@@ -33,9 +34,9 @@ OBJECTS:= $(patsubst %.c, %.o, $(SOURCES))
|
||||
HEADERS:=coap.h config.h debug.h pdu.h net.h encode.h uri.h list.h mem.h subscribe.h str.h
|
||||
#CFLAGS:=-g -Wall -ansi -pedantic
|
||||
CFLAGS:=-Wall -ansi -pedantic @CFLAGS@
|
||||
DISTDIR=$(abs_builddir)/@PACKAGE_TARNAME@-@PACKAGE_VERSION@
|
||||
SUBDIRS:=examples
|
||||
FILES:=Makefile $(SOURCES) $(HEADERS)
|
||||
DISTDIR=$(top_builddir)/$(package)
|
||||
SUBDIRS:=examples doc
|
||||
FILES:=Makefile.in configure configure.in config.h.in $(SOURCES) $(HEADERS)
|
||||
LIB:=libcoap.a
|
||||
LDFLAGS:=@LIBS@
|
||||
ARFLAGS:=cru
|
||||
@@ -77,12 +78,13 @@ distclean: clean
|
||||
@rm -rf $(DISTDIR)
|
||||
@rm -f *~ $(DISTDIR).tar.gz
|
||||
|
||||
dist:
|
||||
dist: $(FILES) $(SUBDIRS)
|
||||
test -d $(DISTDIR) || mkdir $(DISTDIR)
|
||||
test -d $(DISTDIR)/$(examples) || mkdir $(DISTDIR)/$(examples)
|
||||
cp $(FILES) $(DISTDIR)
|
||||
$(MAKE) -C $(examples) dist DISTDIR=../$(DISTDIR)/$(examples)
|
||||
tar czf $(DISTDIR).tar.gz $(DISTDIR)
|
||||
for dir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$dir dist; \
|
||||
done
|
||||
tar czf $(package).tar.gz $(DISTDIR)
|
||||
|
||||
.gitignore:
|
||||
echo "core\n*~\n*.[oa]\n*.gz\n*.cap\n$(PROGRAM)\n$(DISTDIR)\n.gitignore" >$@
|
||||
+5
-4
@@ -25,10 +25,10 @@ SHELL = /bin/sh
|
||||
MKDIR = mkdir
|
||||
DOXYGEN= @DOXYGEN@
|
||||
|
||||
abs_builddir = @abs_builddir@
|
||||
top_builddir = @top_builddir@
|
||||
|
||||
DISTDIR?=$(abs_builddir)/@PACKAGE_TARNAME@-@PACKAGE_VERSION@
|
||||
FILES:=Makefile html
|
||||
DISTDIR?=$(top_builddir)/@PACKAGE_TARNAME@-@PACKAGE_VERSION@
|
||||
FILES:=Makefile.in Doxyfile.in html
|
||||
|
||||
doc: Doxyfile
|
||||
$(DOXYGEN) >./doxygen.out 2>&1
|
||||
@@ -41,4 +41,5 @@ distclean: clean
|
||||
@rm -f *~
|
||||
|
||||
dist: doc
|
||||
cp -r $(FILES) $(DISTDIR)
|
||||
test -d $(DISTDIR)/doc || mkdir $(DISTDIR)/doc
|
||||
cp -r $(FILES) $(DISTDIR)/doc
|
||||
@@ -34,8 +34,8 @@ SOURCES:= tiny.c client.c server.c
|
||||
OBJECTS:= $(patsubst %.c, %.o, $(SOURCES))
|
||||
#CFLAGS:=-g -Wall -ansi -pedantic -I..
|
||||
CFLAGS:=-g -Wall -I$(top_srcdir) @CFLAGS@
|
||||
DISTDIR?=$(abs_builddir)/@PACKAGE_TARNAME@-@PACKAGE_VERSION@
|
||||
FILES:=Makefile $(SOURCES)
|
||||
DISTDIR?=$(top_builddir)/@PACKAGE_TARNAME@-@PACKAGE_VERSION@
|
||||
FILES:=Makefile.in $(SOURCES)
|
||||
LDFLAGS:=-L$(top_builddir) -lcoap @LIBS@
|
||||
|
||||
.PHONY: clean distclean
|
||||
@@ -65,5 +65,6 @@ distclean: clean
|
||||
@rm -rf $(DISTDIR)
|
||||
@rm -f *~
|
||||
|
||||
dist:
|
||||
cp $(FILES) $(DISTDIR)
|
||||
dist: $(FILES)
|
||||
test -d $(DISTDIR)/examples || mkdir $(DISTDIR)/examples
|
||||
cp $(FILES) $(DISTDIR)/examples
|
||||
Reference in new issue
Block a user