diff options
author | Dan Gudmundsson <[email protected]> | 2012-02-09 10:31:22 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2012-02-09 10:31:22 +0100 |
commit | c1aca0c5ef53a97fa353dede5516a6f1e0e044a4 (patch) | |
tree | d6f2e4c8968cfb14bfa6250419a5ef7d9fa67d3a /lib/wx/doc | |
parent | 6004ec3e1785913ff0b74054cf614a35c180d54a (diff) | |
download | otp-c1aca0c5ef53a97fa353dede5516a6f1e0e044a4.tar.gz otp-c1aca0c5ef53a97fa353dede5516a6f1e0e044a4.tar.bz2 otp-c1aca0c5ef53a97fa353dede5516a6f1e0e044a4.zip |
[wx] Cleanup Makefiles
Remove old "outside" otp building support.
Diffstat (limited to 'lib/wx/doc')
-rw-r--r-- | lib/wx/doc/src/Makefile | 59 |
1 files changed, 12 insertions, 47 deletions
diff --git a/lib/wx/doc/src/Makefile b/lib/wx/doc/src/Makefile index 03e9f1e1bb..663a400dd0 100644 --- a/lib/wx/doc/src/Makefile +++ b/lib/wx/doc/src/Makefile @@ -1,7 +1,7 @@ # # %CopyrightBegin% # -# Copyright Ericsson AB 2008-2010. All Rights Reserved. +# Copyright Ericsson AB 2008-2012. All Rights Reserved. # # The contents of this file are subject to the Erlang Public License, # Version 1.1, (the "License"); you may not use this file except in @@ -33,40 +33,7 @@ GenMods = $(shell ls ../../src/gen | grep 'wx[A-Z].*\.erl') \ ModsNoExt = $(ErlMods:%.erl=%) $(GenMods:%.erl=%) -ifneq ($(INSIDE_ERLSRC),true) -# ---------------------------------------------------- -# Standalone release -# ---------------------------------------------------- -Mods = $(ErlMods:%=../../src/%) $(GenMods:%=../../src/gen/%) -HTML_FILES = $(ErlMods:%.erl=../html/%.html) $(GenMods:%.erl=../html/%.html) - -GIF_FILES = ../html/erlang.png -EXTRA_FILES = ../html/index.html \ - ../html/modules-frame.html \ - ../html/overview-summary.html \ - ../html/packages-frame.html - -HTML_STYLESHEET_FILES = ../html/stylesheet.css - -html: ../html/edoc-info - -docs: ../html/edoc-info - -../html/edoc-info: $(Mods) - @echo "Building documentation." - -mkdir -p ../html - erl -noshell -pa doc -run edoc_run application "wx" '"../.."' '[{private,true},no_packages,{dir,"../html"}, {sort_functions,false}]' - -clean: - rm -f *~ - (cd ../html; rm -f *.html *.css erlang.png edoc-info) - -opt debug: -else # Release directory specification -# ---------------------------------------------------- -# Inside the erlang src -# ---------------------------------------------------- XML_APPLICATION_FILES = ref_man.xml XML_REF3_FILES = $(ErlMods:%.erl=%.xml) $(GenMods:%.erl=%.xml) @@ -96,10 +63,10 @@ HTML_REF_MAN_FILE = $(HTMLDIR)/index.html TOP_PDF_FILE = $(PDFDIR)/$(APPLICATION)-$(VSN).pdf # ---------------------------------------------------- -# FLAGS +# FLAGS # ---------------------------------------------------- -XML_FLAGS += -DVIPS_FLAGS += +XML_FLAGS += +DVIPS_FLAGS += # ---------------------------------------------------- # Targets @@ -117,16 +84,16 @@ man: $(MAN3_FILES) gifs: $(GIF_FILES:%=$(HTMLDIR)/%) -xml: $(XML_REF3_FILES) $(XML_CHAPTER_FILES) +xml: $(XML_REF3_FILES) $(XML_CHAPTER_FILES) -ref_man.xml: ref_man.xml.src +ref_man.xml: ref_man.xml.src @echo Preparing ref_man.xml @cat ref_man.xml.src > ref_man.xml @for d in $(ModsNoExt); do \ echo " <xi:include href=\"$$d.xml\"/>" >> ref_man.xml ; \ done @echo "</application>" >> ref_man.xml - @echo + @echo $(ErlMods:%.erl=%.xml): escript $(DOCGEN)/priv/bin/xml_from_edoc.escript -def vsn $(VSN) -sort_functions false ../../src/$(@:%.xml=%.erl) @@ -135,12 +102,12 @@ $(GenMods:%.erl=%.xml): escript $(DOCGEN)/priv/bin/xml_from_edoc.escript -def vsn $(VSN) -sort_functions false ../../src/gen/$(@:%.xml=%.erl) $(XML_CHAPTER_FILES): - escript $(DOCGEN)/priv/bin/xml_from_edoc.escript -def vsn $(VSN) -chapter ../overview.edoc + escript $(DOCGEN)/priv/bin/xml_from_edoc.escript -def vsn $(VSN) -chapter ../overview.edoc -debug opt: +debug opt: clean clean_docs: - rm -rf $(HTMLDIR)/* + rm -rf $(HTMLDIR)/* rm -f $(MAN3DIR)/* rm -f $(TOP_PDF_FILE) $(TOP_PDF_FILE:%.pdf=%.fo) rm -f errs core *~ ../html/edoc-info @@ -148,7 +115,7 @@ clean clean_docs: # ---------------------------------------------------- # Release Target -# ---------------------------------------------------- +# ---------------------------------------------------- include $(ERL_TOP)/make/otp_release_targets.mk @@ -162,8 +129,6 @@ release_docs_spec: docs $(INSTALL_DIR) $(RELEASE_PATH)/man/man3 $(INSTALL_DATA) $(MAN3_FILES) $(RELEASE_PATH)/man/man3 -release_spec: +release_spec: release_tests_spec: - -endif |