b1fca01996-11-12Per Hedbor # @configure_input@ SRCDIR=@srcdir@ VPATH=@srcdir@ prefix=@prefix@
9345f51997-04-09Henrik Grubbström (Grubba) @SET_MAKE@
cdda7d1997-08-20Henrik Grubbström (Grubba) INSTALL=@INSTALL@
f740261997-10-05Henrik Grubbström (Grubba) CC=@CC@
ede98d1997-10-30Henrik Grubbström (Grubba) CPPFLAGS=@CPPFLAGS@
286c531997-11-06Henrik Grubbström (Grubba) CFLAGS=@REALCFLAGS@ JOINEDCFLAGS=@CFLAGS@
a1dc3c1998-07-05Henrik Grubbström (Grubba) LDFLAGS=@LDFLAGS@
f740261997-10-05Henrik Grubbström (Grubba) 
0349ac1998-02-28Henrik Grubbström (Grubba) PIKEVERSION=@PIKEVERSION@
f08a9f1999-02-05Henrik Grubbström (Grubba) # Used to avoid make compatibility problems. BIN_TRUE=":"
3d0eb41999-02-13Peter Bortas all: @MAKE_GMP@ @MAKE_GDBM@ @MAKE_ZLIB@ @MAKE_PLATFORM@ pike extern
f08a9f1999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
4b766a1997-08-18Henrik Grubbström (Grubba)  pike: force
0349ac1998-02-28Henrik Grubbström (Grubba)  @(cd pike/$(PIKEVERSION)/src;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS) @LINKFORSHARED@")
4b766a1997-08-18Henrik Grubbström (Grubba) 
ede98d1997-10-30Henrik Grubbström (Grubba) extern: force
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd extern;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" all)
34a0a61997-08-18Henrik Grubbström (Grubba) 
4b766a1997-08-18Henrik Grubbström (Grubba) gmp: force
138eb41997-10-11Henrik Grubbström (Grubba)  -@(cd gmp;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" all)
4b766a1997-08-18Henrik Grubbström (Grubba)  gdbm: force
138eb41997-10-11Henrik Grubbström (Grubba)  -@(cd gdbm;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" all)
4b766a1997-08-18Henrik Grubbström (Grubba)  zlib: force
138eb41997-10-11Henrik Grubbström (Grubba)  -@(cd zlib;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" libz.a)
4b766a1997-08-18Henrik Grubbström (Grubba) 
a6efcd1998-12-15Peter Bortas # Does not work. The top level makefile contaminates the enviroment. #platform: force # @if test -d platform/. ; then \ # (cd platform/;$(MAKE)) \
e54ae81999-02-08Peter Bortas # else :; fi;
b7ca4e1998-12-07Henrik Grubbström (Grubba) 
4b766a1997-08-18Henrik Grubbström (Grubba) force:
f08a9f1999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
4b766a1997-08-18Henrik Grubbström (Grubba) 
34a0a61997-08-18Henrik Grubbström (Grubba) # These are here for compatibility with the easy-start makefile easy: all
f08a9f1999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
34a0a61997-08-18Henrik Grubbström (Grubba) hard: all
f08a9f1999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
b1fca01996-11-12Per Hedbor 
446c141997-04-27Henrik Grubbström (Grubba) depend:
09e6f31998-05-09Henrik Grubbström (Grubba)  -@(cd pike/$(PIKEVERSION)/src;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" depend) @echo "You need to run configure once again." @exit 1
446c141997-04-27Henrik Grubbström (Grubba) 
1b1efc1997-08-18Henrik Grubbström (Grubba) verify: all verify_other
0349ac1998-02-28Henrik Grubbström (Grubba)  @(cd pike/$(PIKEVERSION)/src;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verify)
446c141997-04-27Henrik Grubbström (Grubba) 
1b1efc1997-08-18Henrik Grubbström (Grubba) verbose_verify: all verify_other
0349ac1998-02-28Henrik Grubbström (Grubba)  @(cd pike/$(PIKEVERSION)/src;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verbose_verify)
446c141997-04-27Henrik Grubbström (Grubba) 
a5d3fa1998-05-08Henrik Grubbström (Grubba) verify_other: verify_extern
1b1efc1997-08-18Henrik Grubbström (Grubba)  @if test "@MAKE_ZLIB@" = "zlib"; then \
138eb41997-10-11Henrik Grubbström (Grubba)  $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verify_zlib; \
1b1efc1997-08-18Henrik Grubbström (Grubba)  fi
84ccc11997-10-07Henrik Grubbström (Grubba)  @if test "@MAKE_GMP@" = "gmp"; then \
138eb41997-10-11Henrik Grubbström (Grubba)  $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verify_gmp; \
84ccc11997-10-07Henrik Grubbström (Grubba)  fi
1b1efc1997-08-18Henrik Grubbström (Grubba) 
a5d3fa1998-05-08Henrik Grubbström (Grubba) verify_extern: @(cd extern;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" verify)
1b1efc1997-08-18Henrik Grubbström (Grubba) verify_zlib:
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd zlib;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" test)
1b1efc1997-08-18Henrik Grubbström (Grubba) 
84ccc11997-10-07Henrik Grubbström (Grubba) verify_gmp:
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd gmp;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" check)
84ccc11997-10-07Henrik Grubbström (Grubba) 
09fb2e1997-04-27Henrik Grubbström (Grubba) new_peep_engine:
0349ac1998-02-28Henrik Grubbström (Grubba)  @(cd pike/$(PIKEVERSION)/src;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" new_peep_engine)
09fb2e1997-04-27Henrik Grubbström (Grubba) 
446c141997-04-27Henrik Grubbström (Grubba) check: verify
f08a9f1999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
b1fca01996-11-12Per Hedbor  clean:
0349ac1998-02-28Henrik Grubbström (Grubba)  @(cd pike/$(PIKEVERSION)/src;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" clean)
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd extern;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" clean)
b1fca01996-11-12Per Hedbor 
e948761997-05-07Henrik Grubbström (Grubba) install_all: install_pike install
f08a9f1999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
e948761997-05-07Henrik Grubbström (Grubba) 
7218e01998-03-13David Hedbor install: all install_only
f08a9f1999-02-05Henrik Grubbström (Grubba)  -@$(BIN_TRUE)
7218e01998-03-13David Hedbor  install_only:
b1fca01996-11-12Per Hedbor  $(SRCDIR)/mkdir -p $(prefix)/roxen/
1901aa1998-07-09Henrik Grubbström (Grubba)  @for f in `cd $(SRCDIR); ls [A-Z]* | grep -v Makefile`; do \
dbb4c61998-09-16Peter Bortas  if test -f $(SRCDIR)/$$f ; then \ cp $(SRCDIR)/$$f $(prefix)/roxen/; \
1901aa1998-07-09Henrik Grubbström (Grubba)  else :; fi; \ done
7931161997-10-12Henrik Grubbström (Grubba)  @if test -d $(prefix)/roxen/server.old/.; then \
5f32d31997-05-16Henrik Grubbström (Grubba)  if test -d $(prefix)/roxen/server.older/.; then \
5773711997-05-20Henrik Grubbström (Grubba)  echo; \ echo "Warning, deleting old server \"$(prefix)/roxen/server.older\""; \ echo; \ rm -rf $(prefix)/roxen/server.older; \
5f32d31997-05-16Henrik Grubbström (Grubba)  fi; \
5773711997-05-20Henrik Grubbström (Grubba)  mv -f $(prefix)/roxen/server.old $(prefix)/roxen/server.older; \
5f32d31997-05-16Henrik Grubbström (Grubba)  fi
7931161997-10-12Henrik Grubbström (Grubba)  @if test -d $(prefix)/roxen/server/.; then \ mv -f $(prefix)/roxen/server $(prefix)/roxen/server.old ; \ fi
b1fca01996-11-12Per Hedbor  cp -r $(SRCDIR)/server $(prefix)/roxen/
e8a33b1999-03-28Marcus Comstedt  @if test -f $(prefix)/roxen/server.old/etc/environment ; then \ cp $(prefix)/roxen/server.old/etc/environment $(prefix)/roxen/server/etc/ ; \ fi
b1fca01996-11-12Per Hedbor  @rm -rf $(prefix)/roxen/server/CVS $(prefix)/roxen/server/*/CVS\ $(prefix)/roxen/server/*/*/CVS
0349ac1998-02-28Henrik Grubbström (Grubba)  cp pike/$(PIKEVERSION)/src/pike $(prefix)/roxen/server/bin
3c862c1997-11-22Martin Stjernholm  -@rm -f $(prefix)/roxen/server/bin/roxen >/dev/null 2>&1
fac0271997-08-15Henrik Grubbström (Grubba)  ln $(prefix)/roxen/server/bin/pike $(prefix)/roxen/server/bin/roxen
0349ac1998-02-28Henrik Grubbström (Grubba) # cp $(SRCDIR)/pike/$(PIKEVERSION)/bin/feature_list $(prefix)/roxen/server/bin
1fba461998-12-07Henrik Grubbström (Grubba)  for d in local local/modules local/nfonts server/lib server/lib/pike; \ do \ test -d $(prefix)/roxen/$$d/. || mkdir $(prefix)/roxen/$$d; \ done
03e07f1998-04-08Henrik Grubbström (Grubba)  @for d in `cd pike/$(PIKEVERSION)/src/lib; find . -type d -print`; do \
2057081998-04-07Henrik Grubbström (Grubba)  if test -d $(prefix)/roxen/server/lib/pike/$$d; then :; else \ mkdir $(prefix)/roxen/server/lib/pike/$$d || exit 1;\ fi; \ done
03e07f1998-04-08Henrik Grubbström (Grubba)  @for d in `cd $(SRCDIR)/pike/$(PIKEVERSION)/lib; find . -type d -print`; do \
2057081998-04-07Henrik Grubbström (Grubba)  if test -d $(prefix)/roxen/server/lib/pike/$$d; then :; else \ mkdir $(prefix)/roxen/server/lib/pike/$$d || exit 1;\ fi; \ done @for f in `cd $(SRCDIR)/pike/$(PIKEVERSION)/lib; find . -type f -print`; do \
8c17d81998-04-08Henrik Grubbström (Grubba)  if cmp $(SRCDIR)/pike/$(PIKEVERSION)/lib/$$f $(prefix)/roxen/server/lib/pike/$$f >/dev/null 2>&1; then :; else \
2057081998-04-07Henrik Grubbström (Grubba)  if test -f $(prefix)/roxen/server/lib/pike/$$f; then \ mv -f $(prefix)/roxen/server/lib/pike/$$f $(prefix)/roxen/server/lib/pike/$$f.old; \ else :; fi; \
a5d3fa1998-05-08Henrik Grubbström (Grubba)  if cp $(SRCDIR)/pike/$(PIKEVERSION)/lib/$$f $(prefix)/roxen/server/lib/pike/$$f; then :; else \
2057081998-04-07Henrik Grubbström (Grubba)  echo "Failed to copy $$f"; \ exit 1; \ fi; \ fi; \ done @for f in `cd pike/$(PIKEVERSION)/src/lib; find . -type f -print`; do \
8c17d81998-04-08Henrik Grubbström (Grubba)  if cmp pike/$(PIKEVERSION)/src/lib/$$f $(prefix)/roxen/server/lib/pike/$$f >/dev/null 2>&1; then :; else \
2057081998-04-07Henrik Grubbström (Grubba)  if test -f $(prefix)/roxen/server/lib/pike/$$f; then \ mv -f $(prefix)/roxen/server/lib/pike/$$f $(prefix)/roxen/server/lib/pike/$$f.old; \ else :; fi; \
a5d3fa1998-05-08Henrik Grubbström (Grubba)  if cp pike/$(PIKEVERSION)/src/lib/$$f $(prefix)/roxen/server/lib/pike/$$f; then :; else \
2057081998-04-07Henrik Grubbström (Grubba)  echo "Failed to copy $$f"; \ exit 1; \ fi; \ fi; \ done
9815301997-08-26Henrik Grubbström (Grubba)  test -d $(prefix)/roxen/server/include/. || mkdir $(prefix)/roxen/server/include test -d $(prefix)/roxen/server/include/pike/. || mkdir $(prefix)/roxen/server/include/pike
0349ac1998-02-28Henrik Grubbström (Grubba)  for a in $(SRCDIR)/pike/$(PIKEVERSION)/src/*.h ./pike/$(PIKEVERSION)/src/*.h; do $(INSTALL) $$a $(prefix)/roxen/server/include/pike; done
138eb41997-10-11Henrik Grubbström (Grubba)  -@(cd extern;$(MAKE) install "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)";cd ../)
ef89571996-12-06Per Hedbor  -@$(SRCDIR)/mkdir -p $(prefix)/roxen/logs -@$(SRCDIR)/mkdir -p $(prefix)/roxen/configurations
16c11e1998-07-11Henrik Grubbström (Grubba)  -chmod a+rx $(prefix) -chmod a+rx $(prefix)/roxen -chmod a+rx $(prefix)/roxen/server
a552541997-06-13Henrik Grubbström (Grubba)  -@for d in fonts nfonts modules etc bin base_server more_modules \
9e98a11997-08-14Henrik Grubbström (Grubba)  config_actions server_templates \
d3c1b21997-06-13Henrik Grubbström (Grubba)  languages roxen-images protocols unfinishedmodules; do \
c490971997-06-04Henrik Grubbström (Grubba)  echo Modifying permissions for directory $(prefix)/roxen/server/$$d... ; \ find $(prefix)/roxen/server/$$d -type d -exec chmod a+x '{}' \; ; \ chmod -R a+r $(prefix)/roxen/server/$$d ;\ done
fb18b21998-01-07Henrik Grubbström (Grubba)  -@for f in BUGS CHANGES CONTRIBUTORS COPYING GPL INSTALLING \ README README.ssl3 TODO; do \
dbb4c61998-09-16Peter Bortas  if test -f $(SRCDIR)/$$f ; then \ echo Copying $$f...; cp $(SRCDIR)/$$f $(prefix)/roxen/$$f; \
fb18b21998-01-07Henrik Grubbström (Grubba)  else :; fi; \ done
89b0891998-01-07Henrik Grubbström (Grubba)  -@for f in cgi fcgi install.pike pdbi.pike pike roxen roxen_hostname; \ do \ if test -f $(prefix)/roxen/server/bin/$$f ; then \ echo Modifying permissions for file $(prefix)/roxen/server/bin/$$f... ; \ chmod a+rx $(prefix)/roxen/server/bin/$$f; \ else :; fi; \
e2f7ab1998-07-01Henrik Grubbström (Grubba)  done; \ if test -f $(prefix)/bin/pike-roxen ; then :; else \ if test -d $(prefix)/bin/. ; then :; else \ echo "Creating directory $(prefix)/bin"; \ mkdir $(prefix)/bin || exit 1; \ chmod a+rx $(prefix)/bin/.; \ fi; \ echo "Installing $(prefix)/bin/pike-roxen"; \
3765a41998-07-01Henrik Grubbström (Grubba)  sed <$(SRCDIR)/pike-roxen.in -e 's!#prefix#!$(prefix)!' >$(prefix)/bin/pike-roxen || exit 1; \
e2f7ab1998-07-01Henrik Grubbström (Grubba)  chmod a+rx $(prefix)/bin/pike-roxen; \ fi
3d0eb41999-02-13Peter Bortas #FIXME: Isn't this nessisary? This dir is moved, so does it still work?
42fc071998-12-09Peter Bortas  @if test -f platform/Makefile ; then \ echo "Installing supplied Roxen Platform parts..."; \ (cd platform; $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" install); \
9c5a9b1998-12-08Henrik Grubbström (Grubba)  else :; fi
81ad781999-02-15Peter Bortas  @if test -f $(SRCDIR)/server/manual/parsed.tar ; then \ echo "Installing parsed manual..."; \ (cd $(prefix)/roxen/server/manual; tar xf $(SRCDIR)/server/manual/parsed.tar; rm parsed.tar); \ else :; fi @if test -f $(SRCDIR)/server/manual/unparsed.tar ; then \ echo "Installing unparsed manual..."; \ (cd $(prefix)/roxen/server/manual; tar xf $(SRCDIR)/server/manual/unparsed.tar; rm unparsed.tar); \
3d0eb41999-02-13Peter Bortas  else :; fi
9c5a9b1998-12-08Henrik Grubbström (Grubba)  @echo "Roxen installed."
b1fca01996-11-12Per Hedbor 
e948761997-05-07Henrik Grubbström (Grubba) install_pike: all
0349ac1998-02-28Henrik Grubbström (Grubba)  @(cd pike/$(PIKEVERSION)/src;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" install)
e948761997-05-07Henrik Grubbström (Grubba) 
b1fca01996-11-12Per Hedbor localinstall: all
0349ac1998-02-28Henrik Grubbström (Grubba)  cp pike/$(PIKEVERSION)/src/pike $(SRCDIR)/server/bin/
7931161997-10-12Henrik Grubbström (Grubba)  -@rm -f $(SRCDIR)/server/bin/roxen >/dev/null 2>&1
fac0271997-08-15Henrik Grubbström (Grubba)  ln $(SRCDIR)/server/bin/pike $(SRCDIR)/server/bin/roxen
3d73d01998-03-11Henrik Grubbström (Grubba)  @for d in lib lib/pike; do \ if [ -d "$(SRCDIR)/server/$$d/." ]; then : ; else \ echo "$$d"; \ mkdir "$(SRCDIR)/server/$$d" || exit 1; \ chmod a+rx "$(SRCDIR)/server/$$d/."; \ chmod u+w "$(SRCDIR)/server/$$d/."; \ fi; \ done
99b0ae1998-07-08Martin Stjernholm  @(cd pike/$(PIKEVERSION)/src/lib && { \ echo "Updating from pike/$(PIKEVERSION)/src/lib"; \ for d in `find . -type d \( -name CVS -o -print \)`; do \ if [ -d "$(SRCDIR)/server/lib/pike/$$d/." ]; then : ; else \ echo "Creating directory $(SRCDIR)/server/lib/pike/$$d"; \ mkdir "$(SRCDIR)/server/lib/pike/$$d" || exit 1; \ chmod a+rx "$(SRCDIR)/server/lib/pike/$$d/."; \ chmod u+w "$(SRCDIR)/server/lib/pike/$$d/."; \ fi; \ done; \ for f in `find . -type d -name CVS -prune -o -type f -print`; do \ if cmp "$(SRCDIR)/server/lib/pike/$$f" "$$f" >/dev/null 2>&1 ; \ then : ; else \ echo "Copying pike/$(PIKEVERSION)/src/lib/$$f"; \ if [ -f "$(SRCDIR)/server/lib/pike/$$f" ]; then \ mv -f "$(SRCDIR)/server/lib/pike/$$f" \ "$(SRCDIR)/server/lib/pike/$$f.old"; \ else : ; fi; \ cp "$$f" "$(SRCDIR)/server/lib/pike/$$f" || exit 1; \ chmod a+r "$(SRCDIR)/server/lib/pike/$$f"; \ chmod u+w "$(SRCDIR)/server/lib/pike/$$f"; \ fi; \ done; \ } ) @(if [ -d $(SRCDIR)/pike/$(PIKEVERSION)/lib ] ; then \
719e9c1998-07-08Martin Stjernholm  if [ -d "$(SRCDIR)/server/share/." ]; then : ; else \ echo "$(SRCDIR)/server/share"; \ mkdir "$(SRCDIR)/server/share" || exit 1; \ chmod a+rx "$(SRCDIR)/server/share/."; \ chmod u+w "$(SRCDIR)/server/share/."; \ fi; \ rm -f "$(SRCDIR)/server/share/pike" >/dev/null 2>&1; \
a54ae91998-07-09Martin Stjernholm  ln -s "../../pike/$(PIKEVERSION)/lib" "$(SRCDIR)/server/share/pike"; \
99b0ae1998-07-08Martin Stjernholm  else : ; fi)
138eb41997-10-11Henrik Grubbström (Grubba)  (cd extern; $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" localinstall)
b1fca01996-11-12Per Hedbor  spotless: clean
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd extern;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" spotless)
0349ac1998-02-28Henrik Grubbström (Grubba)  @(cd pike/$(PIKEVERSION)/src;$(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" spotless) rm -f server/bin/selfdir server/bin/roxen_hostname pike/$(PIKEVERSION)/src/pike\ pike/$(PIKEVERSION)/src/pike.old server/bin/proxygarb
b1fca01996-11-12Per Hedbor  find . '(' -name '#*#' -o -name '*~' -o -name '.*~' -o -name '*.bak'\ -o -name '.pine-debug*' -o -name '.*.bak' -o -name core -o -name \ config.cache -o -name config.status -o -name config.log -o -name \ "*.a" ')' -print -exec /bin/rm '{}' ';' rm -rf server/logs rm -rf logs distribute: spotless
138eb41997-10-11Henrik Grubbström (Grubba)  @(cd extern; $(MAKE) "prefix=$(prefix)" "CC=$(CC)" "LDFLAGS=$(LDFLAGS)" distribute)
2961e21998-03-12Henrik Grubbström (Grubba) 
56846a1998-04-07Henrik Grubbström (Grubba) run_autoconfig: @(cd $(SRCDIR); pike/$(PIKEVERSION)/src/run_autoconfig .)
2961e21998-03-12Henrik Grubbström (Grubba) 
4354ba1998-04-07Henrik Grubbström (Grubba) ./Makefile: $(SRCDIR)/Makefile.in config.status CONFIG_FILES=Makefile CONFIG_HEADERS="" ./config.status @echo "Run make again" @exit 1
2f95e61998-04-07Henrik Grubbström (Grubba) bump_version.stamp:
b4f0c51998-03-13Henrik Grubbström (Grubba)  @touch bump_version.stamp
2f95e61998-04-07Henrik Grubbström (Grubba)  bump_version: bump_version.stamp
2961e21998-03-12Henrik Grubbström (Grubba)  @if test -f $(SRCDIR)/server/base_server/roxen.pike.new; then \ echo Deleting old $(SRCDIR)/server/base_server/roxen.pike.new...; \ rm $(SRCDIR)/server/base_server/roxen.pike.new || exit 1; \ else : ; fi
b4f0c51998-03-13Henrik Grubbström (Grubba)  @(cd $(SRCDIR); \ echo Updating sources...; \
93634b1999-02-03Peter Bortas  if cvs -q update -d|egrep '^[CM?]'; then exit 1; else : ; fi; \
b4f0c51998-03-13Henrik Grubbström (Grubba)  )
3c94dd1999-02-12Peter Bortas # @for d in $(SRCDIR)/pike/0.5 $(SRCDIR)/pike/0.6; do \ # if test -f $$d/src/version.c; then \ # (cd $$d/; \ # echo Bumping Pike version in directory $$d...; \ # build=`sed <src/version.c -e'/push_text/s/.* \([0-9]*\).*/\1/p' -ed|head -1`; \ # newbuild=`echo $$build 1+p|dc`; \ # sed <src/version.c -e"/push_text/s/ $$build/ $$newbuild/" >src/version.c.new; \ # checkbuild=`sed <src/version.c.new -e'/push_text/s/.* \([0-9]*\).*/\1/p' -ed|head -1`; \ # if test "x$$newbuild" = "x$$checkbuild"; then \ # mv -f src/version.c.new src/version.c || exit 1; \ # echo "Successfull bump to build $$newbuild."; \ # else \ # echo "Version bump failed: $$newbuild != $$checkbuild."; \ # exit 1; \ # fi; \ # cvs ci -m "Pike release bumped to $$newbuild by bump_version." src/version.c || exit 1; \ # echo "Tagging Pike in $$d..."; \ # cvs tag `sed <src/version.c -e '/push_text/s/.*"\(.*\)".*/\1/p' -ed|tr 'A-Z. ' 'a-z__'|head -1`||exit 1; \ # echo Done with $$d.); \ # else :; fi; \ # done
f56d5e1998-12-15Peter Bortas  @if test -d platform/. ; then \
c2577a1999-02-14Peter Bortas  extratag=-p; \
23654e1998-12-15Peter Bortas  else :; fi; \
f56d5e1998-12-15Peter Bortas  (cd $(SRCDIR)/server/base_server; \
c053c11998-05-26Henrik Grubbström (Grubba)  echo Bumping Roxen version...; \
2961e21998-03-12Henrik Grubbström (Grubba)  build=`sed <roxen.pike -e'/__roxen_build__/s/[^0-9]*//gp' -ed|head -1`; \ newbuild=`echo $$build 1+p|dc`; \
b4f0c51998-03-13Henrik Grubbström (Grubba)  sed <roxen.pike -e"/__roxen_build__/s/$$build/$$newbuild/" >roxen.pike.new; \
1fe5e61998-03-13Henrik Grubbström (Grubba)  checkbuild=`sed <roxen.pike.new -e'/__roxen_build__/s/[^0-9]*//gp' -ed|head -1`; \
2961e21998-03-12Henrik Grubbström (Grubba)  if test "x$$newbuild" = "x$$checkbuild"; then \ mv -f roxen.pike.new roxen.pike || exit 1; \ echo "Successfull bump to build $$newbuild."; \ else \
b4f0c51998-03-13Henrik Grubbström (Grubba)  echo "Version bump failed: $$newbuild != $$checkbuild."; \
2961e21998-03-12Henrik Grubbström (Grubba)  exit 1; \ fi; \ version=`sed <roxen.pike -e'/__roxen_version__/s/[^.0-9]*//gp' -ed|head -1`; \
e262f81998-04-07Henrik Grubbström (Grubba)  cvs ci -m "Version bumped to $$version.$$newbuild by bump_version." roxen.pike || exit 1; \ echo "Roxen $$version.$$newbuild" >../../VERSION; \
6243331998-03-13Henrik Grubbström (Grubba)  cat ../../VERSION; \
2961e21998-03-12Henrik Grubbström (Grubba)  )
1fe5e61998-03-13Henrik Grubbström (Grubba)  @(cd $(SRCDIR); \
6243331998-03-13Henrik Grubbström (Grubba)  echo Tagging...; \
23654e1998-12-15Peter Bortas  cvs tag `cat VERSION | tr 'A-Z. ' 'a-z__'`$$extratag||exit 1; \
2961e21998-03-12Henrik Grubbström (Grubba)  )
b4f0c51998-03-13Henrik Grubbström (Grubba)  @touch bump_version
2961e21998-03-12Henrik Grubbström (Grubba) 
09e6f31998-05-09Henrik Grubbström (Grubba) $(SRCDIR)/ChangeLog.gz:
2057081998-04-07Henrik Grubbström (Grubba)  cd $(SRCDIR); pike tools/make_changelog.pike | gzip -9 > ChangeLog.gz
74defa1998-03-23Per Hedbor 
09e6f31998-05-09Henrik Grubbström (Grubba) $(SRCDIR)/ChangeLog.rxml.gz:
f715321998-06-08Henrik Grubbström (Grubba)  cd $(SRCDIR); pike tools/make_changelog.pike --rxml | gzip -9 > ChangeLog.rxml.gz
74defa1998-03-23Per Hedbor 
ae6c0d1998-06-01Henrik Grubbström (Grubba) force_update: force @rm $(SRCDIR)/ChangeLog.gz $(SRCDIR)/ChangeLog.rxml.gz \
a3118a1998-06-08Henrik Grubbström (Grubba)  $(SRCDIR)/VERSION bump_version bump_version.stamp \ 2>/dev/null || true
ae6c0d1998-06-01Henrik Grubbström (Grubba)  @echo Prepared for version update.
f715321998-06-08Henrik Grubbström (Grubba) pre_dist: bump_version -@$(MAKE) depend -@$(MAKE) run_autoconfig
a1dc3c1998-07-05Henrik Grubbström (Grubba) # @(cd pike; $(MAKE) pre_dist)
2961e21998-03-12Henrik Grubbström (Grubba) 
7f1bba1998-10-19Peter Bortas faked_pre_dist: echo "test_build" > $(SRCDIR)/VERSION -@$(MAKE) depend -@$(MAKE) run_autoconfig
23654e1998-12-15Peter Bortas copy_dist: $(SRCDIR)/ChangeLog.gz $(SRCDIR)/ChangeLog.rxml.gz
2961e21998-03-12Henrik Grubbström (Grubba)  @if test -f $(SRCDIR)/VERSION; then :; else \ echo 'You need to make pre_dist first!'; \ exit 1; \ fi
2fcfa01998-04-07Henrik Grubbström (Grubba)  @version=`cat $(SRCDIR)/VERSION | tr 'A-Z ' 'a-z_'`; \
23654e1998-12-15Peter Bortas  if test -d platform/. ; then \
c2577a1999-02-14Peter Bortas  version=$$version-p; \
23654e1998-12-15Peter Bortas  else :; fi; \
5208961998-04-07Henrik Grubbström (Grubba)  if ls -d $$version* >/dev/null 2>&1; then \
2961e21998-03-12Henrik Grubbström (Grubba)  echo Deleting old distributions...; \ rm -rf $$version* || exit 1; \ else :; fi; \ mkdir $$version; \
5208961998-04-07Henrik Grubbström (Grubba)  echo Copying files...; \
2961e21998-03-12Henrik Grubbström (Grubba)  (cd $(SRCDIR); tar cf - .)|(cd $$version; tar xf -; make dist_clean); \
f715321998-06-08Henrik Grubbström (Grubba)  echo Cleaning up the copied sources...; \ for f in `find $$version/. -type f -name '*~' -print` \ `find $$version/. -type f -name '.#*' -print` \
641df91999-01-25Peter Bortas  `find $$version/. -type f -name '#*#' -print`; do \
f715321998-06-08Henrik Grubbström (Grubba)  echo $$f; rm $$f || exit 1; \ done; \
9615211999-03-27Marcus Comstedt  for d in \
8de10f1998-06-09Henrik Grubbström (Grubba)  $$version/pike/0.6/about_pike $$version/pike/0.6/doc; do \
f715321998-06-08Henrik Grubbström (Grubba)  if test -d $$d/. ; then \ echo Removing $$d...; rm -rf $$d || exit 1; \ else :; fi; \ done; \
8a06211998-07-04Henrik Grubbström (Grubba)  echo "Zapping absolute paths in language.c..."; \ for f in $$version/pike/*/src/language.c; do \
dbb4c61998-09-16Peter Bortas  if test -f "$$f"; then \ echo "Fixing $$f.."; \ sed <"$$f" >"$$f.fix" -e '/^#line/s!/.*/\(language\.yacc\)!\1!' && \ mv "$$f.fix" "$$f"; \
8a06211998-07-04Henrik Grubbström (Grubba)  else :; fi; \
23654e1998-12-15Peter Bortas  done; tar_dist: @version=`cat $(SRCDIR)/VERSION | tr 'A-Z ' 'a-z_'`; \ if test -d platform/. ; then \
c2577a1999-02-14Peter Bortas  version=$$version-p; \
23654e1998-12-15Peter Bortas  else :; fi; \
615cd81998-08-30Henrik Grubbström (Grubba)  echo "Altering some CVS files to point to developer.roxen.com..."; \ for f in `find $$version/ -type d -name CVS -print`; do \
dbb4c61998-09-16Peter Bortas  if egrep '^//*cvs//*roxen_src' "$$f/Repository" 2>&1 >/dev/null; \
615cd81998-08-30Henrik Grubbström (Grubba)  then \
dbb4c61998-09-16Peter Bortas  echo "Altering $$f..."; \ sed -e 's/^\/\/*cvs\/\/*roxen_src/\/cvs\/roxen/' <"$$f/Repository" \ >"$$f/Repository.new" && \ mv "$$f/Repository.new" "$$f/Repository"; \ echo "anonymous@developer.roxen.com:/cvs" >"$$f/Root"; \
615cd81998-08-30Henrik Grubbström (Grubba)  else :; fi; \ done; \
ae6c0d1998-06-01Henrik Grubbström (Grubba)  echo Determining if this is a 0.5, 0.6 or dual distribution...; \ if test -d $$version/pike/0.5/. ; then \ if test -d $$version/pike/0.6/. ; then \ type="dual"; \ else \ type="0.5"; \ fi ; \ else \ if test -d $$version/pike/0.6/. ; then \ type="0.6"; \ else \ type="no_pike"; \ fi ; \ fi; \ echo Type $$type.; \
011f801998-04-15Henrik Grubbström (Grubba)  echo Building full NDA distribution...; \
ae6c0d1998-06-01Henrik Grubbström (Grubba)  tar cf - $$version | gzip -9 >$$version-$$type-nda-full.tar.gz; \
2961e21998-03-12Henrik Grubbström (Grubba)  if (cd $$version; make keep_dbapi || exit 1); then \ mv $$version/dbapi.tar . || exit 1; \ else :; fi; \
3115ad1998-04-07Henrik Grubbström (Grubba)  (cd $$version; make censor_dbapi || exit 1); \
5208961998-04-07Henrik Grubbström (Grubba)  echo Building full ordinary distribution...; \
ae6c0d1998-06-01Henrik Grubbström (Grubba)  tar cf - $$version | gzip -9 >$$version-$$type.tar.gz; \
3115ad1998-04-07Henrik Grubbström (Grubba)  (cd $$version; make censor_crypto || exit 1); \
5208961998-04-07Henrik Grubbström (Grubba)  echo Building lobotomized ordinary distribution...; \
ae6c0d1998-06-01Henrik Grubbström (Grubba)  tar cf - $$version | gzip -9 >$$version-$$type-int.tar.gz; \
1ab7ab1998-05-09Henrik Grubbström (Grubba)  echo Restoring DBAPI...; \
3115ad1998-04-07Henrik Grubbström (Grubba)  (cd $$version; tar xf ../dbapi.tar || exit 1); \
5208961998-04-07Henrik Grubbström (Grubba)  echo Building lobotomized NDA distribution...; \
5124131999-03-31Marcus Comstedt  tar cf - $$version | gzip -9 >$$version-$$type-nda-int.tar.gz; \
c153991999-03-30Marcus Comstedt  (mkdir 40bit-nda; cd 40bit-nda; gzip -cd < ../$$version-$$type-nda-full.tar.gz | tar xf -; cd $$version; make censor_strong_crypto || exit 1); \ echo Building 40bit NDA distribution...; \ (cd 40bit-nda; tar cf - $$version | gzip -9 >../$$version-$$type-nda-40bit.tar.gz || exit 1); \ rm -rf 40bit-nda; \ (mkdir 40bit; cd 40bit; gzip -cd < ../$$version-$$type.tar.gz | tar xf -; cd $$version; make censor_strong_crypto || exit 1); \ echo Building 40bit ordinary distribution...; \ (cd 40bit; tar cf - $$version | gzip -9 >../$$version-$$type-40bit.tar.gz || exit 1); \ rm -rf 40bit;
23654e1998-12-15Peter Bortas  dist: copy_dist tar_dist
1709ff1998-12-19Henrik Grubbström (Grubba)  @echo Distribution build complete.