17 |
# along with GNU GNATS; if not, write to the Free Software |
# along with GNU GNATS; if not, write to the Free Software |
18 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
|
|
20 |
SUBDIRS = gnats send-pr doc |
VERSION = 4.0-beta1 |
21 |
|
DISTDIR = gnats-$(VERSION) |
22 |
|
|
23 |
|
srcdir = @srcdir@ |
24 |
|
VPATH = @srcdir@ |
25 |
|
|
26 |
|
SUBDIRS = gnats send-pr doc |
27 |
LIBIBERTYDIR = libiberty |
LIBIBERTYDIR = libiberty |
28 |
LIBIBERTY = $(LIBIBERTYDIR)/libiberty.a |
LIBIBERTY = $(LIBIBERTYDIR)/libiberty.a |
29 |
|
|
30 |
# Standard GNU targets |
# Standard GNU targets |
31 |
.PHONY: all install install-strip uninstall clean distclean mostlyclean \ |
.PHONY: all install install-strip uninstall clean distclean distclean-here \ |
32 |
maintainer-clean TAGS info dvi dist check |
mostlyclean maintainer-clean TAGS info dvi dist check |
33 |
# GNATS specific targets |
# GNATS specific targets |
34 |
.PHONY: all-gnats all-tools |
.PHONY: all-gnats all-tools |
35 |
|
|
56 |
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
57 |
|
|
58 |
mostlyclean: |
mostlyclean: |
59 |
-rm -f TAGS |
-rm -f TAGS *.tar *.tar.gz |
60 |
|
-rm -f .\#* *~* |
61 |
for d in $(LIBIBERTYDIR) $(SUBDIRS); do $(MAKE) -C $$d $@; done |
for d in $(LIBIBERTYDIR) $(SUBDIRS); do $(MAKE) -C $$d $@; done |
62 |
|
|
63 |
clean: mostlyclean |
clean: mostlyclean |
64 |
for d in $(LIBIBERTYDIR) $(SUBDIRS); do $(MAKE) -C $$d $@; done |
for d in $(LIBIBERTYDIR) $(SUBDIRS); do $(MAKE) -C $$d $@; done |
65 |
|
|
66 |
distclean: clean |
distclean: clean distclean-here |
67 |
|
for d in $(LIBIBERTYDIR) $(SUBDIRS); do $(MAKE) -C $$d $@; done |
68 |
|
distclean-here: |
69 |
-rm -f Makefile config.status config.cache config.log |
-rm -f Makefile config.status config.cache config.log |
70 |
-rm -f ./"#"* *~* |
-rm -f .\#* *~* |
71 |
-rm -f *.orig *.rej |
-rm -f *.orig *.rej |
|
for d in $(LIBIBERTYDIR) $(SUBDIRS); do $(MAKE) -C $$d $@; done |
|
72 |
|
|
73 |
maintainer-clean: distclean |
maintainer-clean: distclean-here |
74 |
for d in $(LIBIBERTYDIR) $(SUBDIRS); do $(MAKE) -C $$d $@; done |
for d in $(LIBIBERTYDIR) $(SUBDIRS); do $(MAKE) -C $$d $@; done |
75 |
|
|
76 |
|
Makefile: $(srcdir)/Makefile.in config.status |
77 |
|
./config.status |
78 |
|
|
79 |
TAGS: |
TAGS: |
80 |
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
81 |
|
|
85 |
dvi: |
dvi: |
86 |
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
87 |
|
|
88 |
dist: |
dist: maintainer-clean |
89 |
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
./configure |
90 |
|
$(MAKE) |
91 |
|
$(MAKE) distclean |
92 |
|
-rm -rf $(DISTDIR) |
93 |
|
mkdir $(DISTDIR) |
94 |
|
find \( -maxdepth 1 -not -name . -not -name .. -not -name $(DISTDIR) \ |
95 |
|
-not -name debian \) -print0 | \ |
96 |
|
xargs --null cp -al --target-directory=$(DISTDIR) |
97 |
|
find $(DISTDIR) \( -name CVS -o -name .cvsignore \) -print0 | \ |
98 |
|
xargs --null --no-run-if-empty rm -r |
99 |
|
-find $(DISTDIR) -type d -print0 | \ |
100 |
|
xargs --null --no-run-if-empty rmdir -p 2>/dev/null |
101 |
|
set -e; for i in gnats/configure gnats/configure.in; do \ |
102 |
|
sed 's/-Werror//' $(DISTDIR)/$$i >$(DISTDIR)/$$i.tmp; \ |
103 |
|
mv $(DISTDIR)/$$i.tmp $(DISTDIR)/$$i; \ |
104 |
|
done |
105 |
|
tar cvf $(DISTDIR).tar $(DISTDIR) |
106 |
|
rm -rf $(DISTDIR) |
107 |
|
gzip -9 $(DISTDIR).tar |
108 |
|
|
109 |
check: |
check: |
110 |
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |
for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done |