]> git.mxchange.org Git - simgear.git/blob - Makefile.am
Minor tidying up of interface.
[simgear.git] / Makefile.am
1 EXTRA_DIST      = mksymlinks.sh acsite.m4 acconfig.h
2
3 SUBDIRS         = simgear
4
5 #
6 # Additional all, clean, and distclean rules for additional packages.
7 # We can't just include the additional package dirs in SUBDIRS (which 
8 # would be nice because there are then problems with make dist
9 #
10
11 all: 
12         @list='@subdirs@'; \
13         target=`echo $@`; \
14         for subdir in $$list; do \
15           echo "Making $$target in $$subdir"; \
16           if test "$$subdir" = "."; then \
17             dot_seen=yes; \
18             local_target="$$target-am"; \
19           else \
20             local_target="$$target"; \
21           fi; \
22           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
23            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
24         done
25
26 install: 
27         @list='@subdirs@'; \
28         target=`echo $@`; \
29         for subdir in $$list; do \
30           echo "Making $$target in $$subdir"; \
31           if test "$$subdir" = "."; then \
32             dot_seen=yes; \
33             local_target="$$target-am"; \
34           else \
35             local_target="$$target"; \
36           fi; \
37           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
38            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
39         done
40
41 clean: 
42         @list='@subdirs@'; \
43         target=`echo $@`; \
44         for subdir in $$list; do \
45           echo "Making $$target in $$subdir"; \
46           if test "$$subdir" = "."; then \
47             dot_seen=yes; \
48             local_target="$$target-am"; \
49           else \
50             local_target="$$target"; \
51           fi; \
52           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
53            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
54         done
55
56 distclean: 
57         @list='@subdirs@'; \
58         target=`echo $@`; \
59         for subdir in $$list; do \
60           echo "Making $$target in $$subdir"; \
61           if test "$$subdir" = "."; then \
62             dot_seen=yes; \
63             local_target="$$target-am"; \
64           else \
65             local_target="$$target"; \
66           fi; \
67           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
68            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
69         done
70
71 #
72 # distclean the associated packages and include them in the dist
73 #
74
75 dist-hook:
76         tar cf - simgear/metar | (cd $(distdir); tar xvf -)
77         @list='@subdirs@'; \
78         target=distclean; \
79         for subdir in $$list; do \
80           echo "Making $$target in $$subdir"; \
81           if test "$$subdir" = "."; then \
82             dot_seen=yes; \
83             local_target="$$target-am"; \
84           else \
85             local_target="$$target"; \
86           fi; \
87           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
88            || case "$$amf" in *=*) echo "distclean error ignored...";; *k*) fail=yes;; *) echo "distclean error ignored...";; esac; \
89         done
90         tar cf - simgear/metakit | (cd $(distdir); tar xvf -)
91         
92
93 #
94 # Rule to build RPM distribution package
95 #
96 rpm: dist
97         cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/packages/SOURCES
98         rpm -ba @PACKAGE@.spec
99