Annotation of /branches/mage-next/conf/Makefile
Parent Directory | Revision Log
Revision 3052 -
(hide annotations)
(download)
Tue Aug 1 15:48:19 2017 UTC (6 years, 10 months ago) by niro
File size: 873 byte(s)
Tue Aug 1 15:48:19 2017 UTC (6 years, 10 months ago) by niro
File size: 873 byte(s)
-use arch command instead of uname -m
1 | niro | 2577 | include ../Makefile.inc |
2 | |||
3 | FILES = etc-update.conf mage.rc.example mage.rc.global | ||
4 | |||
5 | niro | 3052 | ARCH = $(shell arch) |
6 | niro | 2577 | ifeq ($(ARCH), x86_64) |
7 | niro | 3035 | MARCH = x86-64 |
8 | niro | 2577 | else |
9 | niro | 3035 | MARCH = $(ARCH) |
10 | niro | 2577 | endif |
11 | niro | 3035 | MTUNE = generic |
12 | niro | 2577 | |
13 | SCRIPT_SED_LINES += \ | ||
14 | -e "s:@@ARCH@@:$(ARCH):g" \ | ||
15 | niro | 3035 | -e "s:@@MTUNE@@:$(MTUNE):g" \ |
16 | -e "s:@@MARCH@@:$(MARCH):g" | ||
17 | niro | 2577 | |
18 | all: $(FILES) | ||
19 | |||
20 | install: all | ||
21 | $(INSTALLDIR) $(DESTDIR)/$(SYSCONFDIR) | ||
22 | $(INSTALLFILE) $(FILES) $(DESTDIR)/$(SYSCONFDIR) | ||
23 | $(INSTALLDIR) $(DESTDIR)/$(MAGELIBDIR) | ||
24 | $(INSTALLFILE) mage.rc.example $(DESTDIR)/$(MAGELIBDIR) | ||
25 | $(INSTALLFILE) mage.rc.global $(DESTDIR)/$(MAGELIBDIR) | ||
26 | |||
27 | uninstall: | ||
28 | for i in $(FILES); do $(RM) $(DESTDIR)/$(SYSCONFDIR)/$${i}; done | ||
29 | $(RM) $(DESTDIR)/$(MAGELIBDIR)/mage.rc.example | ||
30 | $(RM) $(DESTDIR)/$(MAGELIBDIR)/mage.rc.global | ||
31 | $(RMDIR) $(DESTDIR)/$(SYSCONFDIR) | ||
32 | $(RMDIR) $(DESTDIR)/$(MAGELIBDIR) | ||
33 | |||
34 | clean: | ||
35 | $(RM) $(FILES) | ||
36 | |||
37 | .PHONY: all install uninstall clean |