Skip to content

Commit 4103a6e

Browse files
committed
Change: install documents to doc/api
1 parent 0a6269f commit 4103a6e

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

Makefile.mlton

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MLTON_FLAGS :=
44

55
PREFIX := /usr/local/mlton
66
LIBDIR := lib/SMLUnit
7-
DOCDIR := doc/smlunit-lib
7+
DOCDIR := $(PREFIX)/doc
88

99
SMLDOC := smldoc
1010
SMLDOC_ARGFILE := src/smldoc.cfg
@@ -86,18 +86,18 @@ install: install-doc install-nodoc
8686
.PHONY: doc
8787
doc:
8888
@echo " [SMLDoc]"
89-
@$(RM) -r $(DOCDIR)
90-
@install -d $(DOCDIR)
91-
@$(SMLDOC) -c UTF-8 -a $(SMLDOC_ARGFILE) -d "$(DOCDIR)"
89+
@$(RM) -r doc/api
90+
@install -d doc/api
91+
@$(SMLDOC) -c UTF-8 -a $(SMLDOC_ARGFILE) -d doc/api
9292

9393

9494
.PHONY: install-doc
9595
install-doc: doc
96-
@install -d $(PREFIX)/$(DOCDIR)
97-
@cp -prT $(DOCDIR) $(PREFIX)/$(DOCDIR)
96+
@install -d $(DOCDIR)
97+
@cp -prT doc $(DOCDIR)/smlunit-lib
9898
@echo "================================================================"
9999
@echo "Generated API Documents of SMLUnit"
100-
@echo "\t$(PREFIX)/$(DOCDIR)"
100+
@echo "\t$(DOCDIR)/smlunit-lib"
101101
@echo "================================================================"
102102

103103

@@ -126,7 +126,7 @@ example: $(EXAMPLE_MLB:.mlb=)
126126
.PHONY: clean
127127
clean:
128128
-$(RM) $(TYPECHECK_DUMMY)
129-
-$(RM) -r $(DOCDIR)
129+
-$(RM) -r doc/api
130130
-$(RM) $(DEPENDS)
131131
-$(RM) $(filter-out smlunit-lib,$(SMLUNIT_MLBS:.mlb=))
132132

Makefile.polyml

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ POLYMLFLAGS := -q --error-exit --eval 'PolyML.suffixes := ".sig"::(!PolyML.su
55

66
PREFIX := /usr/local/polyml
77
LIBDIR := lib/smlunit-lib
8-
DOCDIR := doc/smlunit-lib
8+
DOCDIR := $(PREFIX)/doc
99

1010
SMLDOC := smldoc
1111
SMLDOC_ARGFILE := src/smldoc.cfg
@@ -80,18 +80,18 @@ install: install-doc install-nodoc
8080
.PHONY: doc
8181
doc:
8282
@echo " [SMLDoc]"
83-
@$(RM) -r $(DOCDIR)
84-
@install -d $(DOCDIR)
85-
@$(SMLDOC) -c UTF-8 -a $(SMLDOC_ARGFILE) -d "$(DOCDIR)"
83+
@$(RM) -r doc/api
84+
@install -d doc/api
85+
@$(SMLDOC) -c UTF-8 -a $(SMLDOC_ARGFILE) -d doc/api
8686

8787

8888
.PHONY: install-doc
8989
install-doc: doc
90-
@install -d $(PREFIX)/$(DOCDIR)
91-
@cp -prT $(DOCDIR) $(PREFIX)/$(DOCDIR)
90+
@install -d $(DOCDIR)
91+
@cp -prT doc $(DOCDIR)/smlunit-lib
9292
@echo "================================================================"
9393
@echo "Generated API Documents of SMLUnit"
94-
@echo "\t$(PREFIX)/$(DOCDIR)"
94+
@echo "\t$(DOCDIR)/smlunit-lib"
9595
@echo "================================================================"
9696

9797

@@ -114,7 +114,7 @@ example: $(EXAMPLE)
114114
.PHONY: clean
115115
clean:
116116
-$(RM) $(SMLUNIT_LIB)
117-
-$(RM) -r $(DOCDIR)
117+
-$(RM) -r doc/api
118118
-$(RM) $(TEST)
119119
-$(RM) $(TEST:=.o)
120120
-$(RM) $(EXAMPLE)

Makefile.smlnj

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SML_DULIST :=
2222

2323
PREFIX := /usr/local/sml
2424
LIBDIR := lib/smlunit-lib.cm
25-
DOCDIR := doc/smlunit-lib
25+
DOCDIR := $(PREFIX)/doc
2626

2727
SOURCES_CM := smlunit-lib.cm \
2828
src/test/sources.cm \
@@ -83,18 +83,18 @@ install: install-doc install-nodoc
8383
.PHONY: doc
8484
doc:
8585
@echo " [SMLDoc]"
86-
@$(RM) -r $(DOCDIR)
87-
@install -d $(DOCDIR)
88-
@$(SMLDOC) -c UTF-8 -a $(SMLDOC_ARGFILE) -d "$(DOCDIR)"
86+
@$(RM) -r doc/api
87+
@install -d doc/api
88+
@$(SMLDOC) -c UTF-8 -a $(SMLDOC_ARGFILE) -d doc/api
8989

9090

9191
.PHONY: install-doc
9292
install-doc: doc
93-
@install -d $(PREFIX)/$(DOCDIR)
94-
@cp -prT $(DOCDIR) $(PREFIX)/$(DOCDIR)
93+
@install -d $(DOCDIR)
94+
@cp -prT doc $(DOCDIR)/smlunit-lib
9595
@echo "================================================================"
9696
@echo "Generated API Documents of SMLUnit"
97-
@echo "\t$(PREFIX)/$(DOCDIR)"
97+
@echo "\t$(DOCDIR)/smlunit-lib"
9898
@echo "================================================================"
9999

100100

@@ -127,7 +127,7 @@ example: $(EXAMPLE_TARGET)
127127
.PHONY: clean
128128
clean:
129129
-$(RM) $(DEPENDS)
130-
-$(RM) -r $(DOCDIR)
130+
-$(RM) -r doc/api
131131
-$(RM) -r .cm
132132
-$(RM) -r src/.cm
133133
-$(RM) -r src/main/.cm

src/smldoc.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--directory=../doc/smlunit-lib
1+
--directory=../doc/api
22
--hidebysig
33
--verbose
44
--author

0 commit comments

Comments
 (0)