(dist-client): Tarball missed files. Fix.
(dist-source, dist-client): Prerequisites were missing. (acdistcli, cli_distgen, src/client/configure, src/client/config.h.in) (src/client/aclocal.m4): New.
This commit is contained in:
parent
c4ffd0a576
commit
fd16db1565
1 changed files with 32 additions and 8 deletions
36
Make.mk
36
Make.mk
|
@ -85,6 +85,7 @@ mk := sources.mk subjects.mk
|
||||||
ac := $(srcdir)/autom4te.cache config.h config.log config.status \
|
ac := $(srcdir)/autom4te.cache config.h config.log config.status \
|
||||||
stamp-h $(basename $(filter %.in, $(src)))
|
stamp-h $(basename $(filter %.in, $(src)))
|
||||||
acdist := aclocal.m4 config.h.in configure stamp-h.in
|
acdist := aclocal.m4 config.h.in configure stamp-h.in
|
||||||
|
acdistcli := $(addprefix src/client/, aclocal.m4 config.h.in configure)
|
||||||
obj := $(csrc:.c=.o) $(filter %.o, $(ac:.c=.o))
|
obj := $(csrc:.c=.o) $(filter %.o, $(ac:.c=.o))
|
||||||
# TODO AIX needs lwpInit.o lwpRestore.o lwpSave.o unless UCONTEXT
|
# TODO AIX needs lwpInit.o lwpRestore.o lwpSave.o unless UCONTEXT
|
||||||
deps := $(obj:.o=.d)
|
deps := $(obj:.o=.d)
|
||||||
|
@ -117,10 +118,12 @@ clean := $(obj) $(deps) $(libs) $(util) $(client) $(server) $(tsubj) \
|
||||||
$(ttop) $(info.nr) $(info.html) $(empth_obj) $(empth_lib)
|
$(ttop) $(info.nr) $(info.html) $(empth_obj) $(empth_lib)
|
||||||
# Removed by distclean:
|
# Removed by distclean:
|
||||||
distclean := $(ac)
|
distclean := $(ac)
|
||||||
# Distributed by dist from $(srcdir)
|
# Distributed by dist-source from $(srcdir)
|
||||||
src_distgen := $(acdist)
|
src_distgen := $(acdist)
|
||||||
# Distributed by dist from .
|
# Distributed by dist-source from .
|
||||||
bld_distgen := $(mk)
|
bld_distgen := $(mk)
|
||||||
|
# Distributed by dist-client from $(srcdir)/src/client
|
||||||
|
cli_distgen := $(acdistcli)
|
||||||
|
|
||||||
# Compiler flags
|
# Compiler flags
|
||||||
CPPFLAGS += -I$(srcdir)/include -I.
|
CPPFLAGS += -I$(srcdir)/include -I.
|
||||||
|
@ -218,6 +221,8 @@ info.html/%.html: info/%.t
|
||||||
|
|
||||||
### Explicit rules
|
### Explicit rules
|
||||||
|
|
||||||
|
# Compilation
|
||||||
|
|
||||||
$(server): $(filter src/server/% src/lib/as/% src/lib/commands/% src/lib/player/% src/lib/subs/% src/lib/update/%, $(obj)) $(empth_obj) $(libs) $(empth_lib)
|
$(server): $(filter src/server/% src/lib/as/% src/lib/commands/% src/lib/player/% src/lib/subs/% src/lib/update/%, $(obj)) $(empth_obj) $(libs) $(empth_lib)
|
||||||
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
|
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
|
||||||
|
|
||||||
|
@ -235,6 +240,8 @@ $(libs) $(empth_lib): | lib
|
||||||
$(AR) rc $@ $?
|
$(AR) rc $@ $?
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
# Info formatting
|
||||||
|
|
||||||
subjects.mk: $(tsrc) info/findsubj.pl sources.mk
|
subjects.mk: $(tsrc) info/findsubj.pl sources.mk
|
||||||
perl $(srcdir)/info/findsubj.pl
|
perl $(srcdir)/info/findsubj.pl
|
||||||
# If sources.mk is out of date, $(tsrc) is. If it contains files that
|
# If sources.mk is out of date, $(tsrc) is. If it contains files that
|
||||||
|
@ -270,16 +277,19 @@ sources.mk: $(scripts)/cvsfiles.awk $(addprefix $(srcdir)/, $(addsuffix CVS/Entr
|
||||||
echo 'src := ' `cd $(srcdir) && $(AWK) -f src/scripts/cvsfiles.awk` >$@
|
echo 'src := ' `cd $(srcdir) && $(AWK) -f src/scripts/cvsfiles.awk` >$@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#
|
||||||
.PHONY: dist-source
|
.PHONY: dist-source
|
||||||
dist-source: check-version
|
dist-source: check-version $(src_distgen) $(bld_distgen)
|
||||||
$(tarball) $(TARNAME)-$(VERSION) $(bld_distgen) -C $(srcdir) $(src_distgen) $(src)
|
$(tarball) $(TARNAME)-$(VERSION) $(bld_distgen) -C $(srcdir) $(src_distgen) $(src)
|
||||||
|
|
||||||
.PHONY: dist-client
|
.PHONY: dist-client
|
||||||
dist-client:
|
dist-client: $(cli_distgen)
|
||||||
$(tarball) $(TARNAME)-client-$(VERSION) \
|
$(tarball) $(TARNAME)-client-$(VERSION) \
|
||||||
-C $(srcdir)/src/client $(notdir $(filter src/client/%, $(src))) \
|
-C $(srcdir)/src/client \
|
||||||
|
$(notdir $(filter src/client/%, $(src)) $(cli_distgen)) \
|
||||||
-C $(srcdir)/include proto.h \
|
-C $(srcdir)/include proto.h \
|
||||||
-C $(srcdir)/man empire.6
|
-C $(srcdir)/man empire.6 \
|
||||||
|
-C $(srcdir) COPYING INSTALL install-sh
|
||||||
|
|
||||||
.PHONY: dist-info
|
.PHONY: dist-info
|
||||||
dist-info: info html
|
dist-info: info html
|
||||||
|
@ -295,6 +305,7 @@ ifneq ($(deps),)
|
||||||
-include $(deps)
|
-include $(deps)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Automatic remake of configuration
|
# Automatic remake of configuration
|
||||||
# See (autoconf)Automatic Remaking.
|
# See (autoconf)Automatic Remaking.
|
||||||
# This requires sufficiently recent versions of autoconf and automake
|
# This requires sufficiently recent versions of autoconf and automake
|
||||||
|
@ -324,3 +335,16 @@ config.status: configure
|
||||||
|
|
||||||
src/lib/global/path.c src/client/ipglob.c: %: %.in GNUmakefile
|
src/lib/global/path.c src/client/ipglob.c: %: %.in GNUmakefile
|
||||||
$(subst.in) <$< >$@
|
$(subst.in) <$< >$@
|
||||||
|
|
||||||
|
|
||||||
|
# Make files for standalone client distribution
|
||||||
|
|
||||||
|
$(srcdir)/src/client/configure: src/client/configure.ac src/client/aclocal.m4
|
||||||
|
cd $(dir $@) && autoconf
|
||||||
|
|
||||||
|
$(srcdir)/src/client/config.h.in: src/client/configure.ac src/client/aclocal.m4
|
||||||
|
cd $(dir $@) && autoheader
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
$(srcdir)/src/client/aclocal.m4: m4/lib_socket_nsl.m4
|
||||||
|
cp -f $< $@
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue