Mercurial > hg > Members > kono > nitros9-code
view makefile @ 3098:c2030762022b
makefiles: Remove uploading of zip archives
These zip files are not particularly useful for anyone. People
can download single disk images for their machine.
If they had several flavours for one type of machine they could have
been useful. Instead they have one flavour for many types of machines...
Fix "dsk" targets so disk images get build on "make dsk". They were
built as a side-effect of the zip archives.
https://sourceforge.net/p/nitros9/bugs/24/
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sun, 28 Feb 2016 21:37:23 +0100 |
parents | 32191c9fe2cd |
children | 61225db57f19 |
line wrap: on
line source
ifndef NITROS9DIR NITROS9DIR = $(PWD) endif export NITROS9DIR include rules.mak dirs = $(NOSLIB) $(LEVEL1) $(LEVEL2) $(LEVEL3) $(3RDPARTY) # Allow the user to specify a selection of ports to build # All selected ports must be of the same level ifdef PORTS dirs = $(NOSLIB) ifneq (,$(findstring coco3,$(PORTS))) dirs += $(LEVEL2) else dirs += $(LEVEL1) endif endif # Make all components all: @$(ECHO) "**************************************************" @$(ECHO) "* *" @$(ECHO) "* THE NITROS-9 PROJECT *" @$(ECHO) "* *" @$(ECHO) "**************************************************" $(foreach dir,$(dirs),$(MAKE) -C $(dir) &&) : # Clean all components clean: $(RM) nitros9project.zip $(DSKDIR)/*.dsk $(DSKDIR)/ReadMe $(DSKDIR)/index.shtml $(foreach dir,$(dirs),$(MAKE) -C $(dir) clean &&) : $(RM) $(DSKDIR)/ReadMe $(RM) $(DSKDIR)/index.html # Do CVS update hgupdate: hg pull hg update # Make DSK images dsk: all $(foreach dir,$(dirs),$(MAKE) -C $(dir) dsk &&) : # Copy DSK images dskcopy: all mkdir -p $(DSKDIR) $(foreach dir,$(dirs),$(MAKE) -C $(dir) dskcopy &&) : $(MKDSKINDEX) $(DSKDIR) > $(DSKDIR)/index.html # Clean DSK images dskclean: $(foreach dir,$(dirs),$(MAKE) -C $(dir) dskclean &&) : info: @$(foreach dir,$(dirs), $(MAKE) --no-print-directory -C $(dir) info &&) : # This section is to do the nightly build and upload # to sourceforge.net you must set the environment # variable SOURCEUSER to the userid you have for sourceforge.net # The "burst" script is found in the scripts folder and must # on your ssh account at sourceforge.net ifdef SOURCEUSER nightly: clean hgupdate dskcopy $(MAKE) info > $(DSKDIR)/ReadMe $(ARCHIVE) nitros9project $(DSKDIR)/* scp nitros9project.zip $(SOURCEUSER),nitros9@web.sourceforge.net:/home/project-web/nitros9/htdocs/nitros9project-$(shell date +%Y%m%d).zip ssh $(SOURCEUSER),nitros9@shell.sourceforge.net create ssh $(SOURCEUSER),nitros9@shell.sourceforge.net "./burst nitros9project $(shell date +%Y%m%d)" else nightly: @$(ECHO) "" @$(ECHO) "" @$(ECHO) "You need to set the SOURCEUSER variable" @$(ECHO) "You may wish to refer to the nightly" @$(ECHO) "section of the makefile." endif # This section is to run a nightly test. # This requires you to setup a environment variable # called TESTSSHSERVER. # example would be: TESTSSHSERVER='testuser@localhost' # another example: TESTSSHSERVER='testuser@test.testhost.com' # # You are also required to setup a target path for your file # and the environment variable that is being used in this # section is called TESTSSHDIR ifdef TESTSSHSERVER ifdef TESTSSHDIR nightlytest: clean hgupdate dskcopy $(MAKE) info > $(DSKDIR)/ReadMe $(ARCHIVE) nitros9project $(DSKDIR)/* scp nitros9project.zip $(TESTSSHSERVER):$(TESTSSHDIR)/nitros9project-$(shell date +%Y%m%d).zip ssh $(TESTSSHSERVER) "./burst nitros9project $(shell date +%Y%m%d)" else nightlytest: @$(ECHO) "" @$(ECHO) "" @$(ECHO) "You need to set the TESTSSHDIR variable" @$(ECHO) "You may wish to refer to the nightlytest" @$(ECHO) "section of the makefile to see what" @$(ECHO) "needs to be setup first before using" @$(ECHO) "this option" endif else nightlytest: @$(ECHO) "" @$(ECHO) "" @$(ECHO) "You need to set the TESTSSHSERVER variable" @$(ECHO) "You may wish to refer to the nightlytest" @$(ECHO) "section of the makefile to see what" @$(ECHO) "needs to be setup first before using" @$(ECHO) "this option." endif