Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a5b8de

Browse files
committed
Modified the "sgml" and "xml" targets to stop if the sub-makes fail in
any subdirectory; don't continue with remaining subdirs. Added "api", "ext", "lib", "mac", "ref", and "tut" targets to only do submakes in those directories. This is just a lot easier to use than to cd into the subdir and use make.rules directly.
1 parent 19a0dba commit 0a5b8de

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

Doc/tools/sgmlconv/Makefile

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,41 @@ SUBDIRS=api ext lib mac ref tut
1515
all: sgml
1616

1717
.PHONY: sgml xml
18+
.PHONY: $(SUBDIRS)
1819

1920
sgml:
2021
for DIR in $(SUBDIRS) ; do \
2122
(cd $$DIR; \
22-
$(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) sgml) \
23+
$(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) sgml) || exit $$?; \
2324
done
2425

2526
xml:
2627
for DIR in $(SUBDIRS) ; do \
2728
(cd $$DIR; \
28-
$(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) xml) \
29+
$(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR) xml) || exit $$?; \
2930
done
3031

31-
tarball:
32+
tarball: sgml
3233
tar cf - tools/sgmlconv */*.sgml | gzip -9 >sgml-1.5.2b1.tgz
3334

35+
api:
36+
cd api; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
37+
38+
ext:
39+
cd ext; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
40+
41+
lib:
42+
cd lib; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
43+
44+
mac:
45+
cd mac; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
46+
47+
ref:
48+
cd ref; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
49+
50+
tut:
51+
cd tut; $(MAKE) -f $(SGMLRULES) TOOLSDIR=../$(TOOLSDIR)
52+
3453
clean:
3554
for DIR in $(SUBDIRS) ; do \
3655
(cd $$DIR; \

0 commit comments

Comments
 (0)