Annotation of /branches/mage-next/Makefile
Parent Directory | Revision Log
Revision 2577 -
(hide annotations)
(download)
Wed Jan 29 13:38:39 2014 UTC (10 years, 3 months ago) by niro
File size: 955 byte(s)
Wed Jan 29 13:38:39 2014 UTC (10 years, 3 months ago) by niro
File size: 955 byte(s)
-re-facored buildsystem
1 | niro | 2228 | # $Id$ |
2 | niro | 363 | |
3 | niro | 2577 | include Makefile.inc |
4 | niro | 363 | |
5 | niro | 2577 | SUBDIRS = src conf doc |
6 | niro | 1678 | |
7 | niro | 2577 | INSTALLDIRS = $(SUBDIRS:%=install-%) |
8 | UNINSTALLDIRS = $(SUBDIRS:%=uninstall-%) | ||
9 | CLEANDIRS = $(SUBDIRS:%=clean-%) | ||
10 | niro | 363 | |
11 | niro | 2577 | FILES = VERSION ChangeLog |
12 | niro | 363 | |
13 | niro | 2577 | all: $(SUBDIRS) $(FILES) |
14 | niro | 363 | |
15 | niro | 2577 | install: $(INSTALLDIRS) |
16 | $(INSTALLDIR) $(DESTDIR)/$(DOCDIR) | ||
17 | $(INSTALLFILE) $(FILES) $(DESTDIR)/${DOCDIR} | ||
18 | $(INSTALLDIR) $(DESTDIR)/$(MAGELIBDIR) | ||
19 | $(INSTALLFILE) VERSION $(DESTDIR)/${MAGELIBDIR}/version | ||
20 | niro | 363 | |
21 | niro | 2577 | uninstall: $(UNINSTALLDIRS) |
22 | for i in $(FILES); do $(RM) $(DESTDIR)/$(DOCDIR)/$${i}; done | ||
23 | $(RM) $(DESTDIR)/$(MAGELIBDIR)/version | ||
24 | $(RMDIR) $(DESTDIR)/$(MAGELIBDIR) | ||
25 | $(RMDIR) $(DESTDIR)/$(DOCDIR) | ||
26 | niro | 363 | |
27 | niro | 2577 | clean: $(CLEANDIRS) |
28 | niro | 1643 | |
29 | niro | 2577 | $(SUBDIRS): |
30 | $(MAKE) -C $@ | ||
31 | niro | 363 | |
32 | niro | 2577 | $(INSTALLDIRS): |
33 | $(MAKE) -C $(@:install-%=%) install | ||
34 | niro | 363 | |
35 | niro | 2577 | $(UNINSTALLDIRS): |
36 | $(MAKE) -C $(@:uninstall-%=%) uninstall | ||
37 | |||
38 | $(CLEANDIRS): | ||
39 | $(MAKE) -C $(@:clean-%=%) clean | ||
40 | |||
41 | .PHONY: $(SUBDIRS) | ||
42 | .PHONY: $(INSTALLDIRS) | ||
43 | .PHONY: $(UNINSTALLDIRS) | ||
44 | .PHONY: $(CLEANDIRS) | ||
45 | .PHONY: all install uninstall clean |