OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [classpath/] [doc/] [www.gnu.org/] [Makefile] - Blame information for rev 14

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jlechner
SUBDIRS         := announce downloads docs faq events cp-tools
2
 
3
ifndef WMK
4
  export WMK=wmk
5
endif
6
ifndef WML
7
  export WML=wml
8
endif
9
 
10
WML_SRC = $(wildcard *.wml)
11
WML_OBJS = $(patsubst %.wml,%.html,$(WML_SRC))
12
 
13
all : $(WML_OBJS) subdirs
14
 
15
%.texinfo :
16
        cp ../$(notdir $(@)) docs
17
 
18
# home and news html includes newsitems.txt so we list that here explicitly
19
home.html: home.wml include/macros.wml include/layout.wml newsitems.txt
20
        $(WML) -o $@ $<
21
news.html: news.wml include/macros.wml include/layout.wml newsitems.txt
22
        $(WML) -o $@ $<
23
 
24
%.html: %.wml include/macros.wml include/layout.wml
25
        $(WML) -o $@ $<
26
 
27
.PHONY : clean
28
clean :
29
        $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE) clean";)
30
        -rm -f *.html
31
 
32
.PHONY : subdirs
33
subdirs :
34
        $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE)";)
35
 
36
.PHONY : publish
37
publish :
38
        @sh -c "if [ "$(CLASSPATH_WEBROOT)x" = x ]; then echo 'You must set CLASSPATH_WEBROOT in your environment first'; exit 1; fi"
39
        @sh -c "if [ ! -d $(CLASSPATH_WEBROOT) ]; then echo 'You must set CLASSPATH_WEBROOT in your environment first'; exit 1; fi"
40
        $(foreach dir, $(SUBDIRS), \
41
          sh -c "mkdir -p $(CLASSPATH_WEBROOT)/$(dir);\
42
                 cd $(dir) && $(MAKE) publish";)
43
        -cp -f *.html $(CLASSPATH_WEBROOT)
44
        -cp -f *.css $(CLASSPATH_WEBROOT)
45
        # -cp -f *.jpg $(CLASSPATH_WEBROOT)
46
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.