Magellan Linux

Diff of /trunk/installer-simple/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2329 by niro, Fri Jan 3 13:45:39 2014 UTC revision 2332 by niro, Fri Jan 3 13:58:23 2014 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3  VERSION=$(shell cat VERSION)  VERSION = $(shell cat VERSION)
4    SYSTEMDUNITDIR = $(shell pkg-config --variable=systemdsystemunitdir systemd)
5    INSTALLER_TTY = tty1
6    
7    SYSCONFDIR = etc
8  PREFIX = /usr  PREFIX = /usr
9  LIBDIR = $(PREFIX)/lib/installer  LIBDIR = $(PREFIX)/lib/installer
10  BINDIR = $(PREFIX)/bin  BINDIR = $(PREFIX)/bin
# Line 15  all: Line 18  all:
18   $(SED) 's:%VERSIONTAG%:$(VERSION):' \   $(SED) 's:%VERSIONTAG%:$(VERSION):' \
19   bin/installer.sh.in \   bin/installer.sh.in \
20   > bin/installer.sh   > bin/installer.sh
21     $(SED) -e 's:%INSTALLER_TTY%:$(INSTALLER_TTY):g'  \
22     -e 's:%BINDIR%:$(BINDIR):g'  \
23     systemd/installer.service.in \
24     > systemd/installer.service
25    
26  create-dirs:  create-dirs:
27     $(INSTALL) -d -m 0755 $(DESTDIR)/$(SYSCONFDIR)
28   $(INSTALL) -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions   $(INSTALL) -d -m 0755 $(DESTDIR)/$(LIBDIR)/functions
29   $(INSTALL) -d -m 0755 $(DESTDIR)/$(BINDIR)   $(INSTALL) -d -m 0755 $(DESTDIR)/$(BINDIR)
30    
31  install-files:  install-files:
32     $(INSTALL) -m 0644 conf/installer.conf $(DESTDIR)$(SYSCONFDIR)
33   $(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer   $(INSTALL) -m 0755 bin/installer.sh $(DESTDIR)$(BINDIR)/installer
34   $(INSTALL) -m 0644 functions/findhdd.sh $(DESTDIR)$(LIBDIR)/functions/   $(INSTALL) -m 0644 functions/findhdd.sh $(DESTDIR)$(LIBDIR)/functions/
35    
36  install: create-dirs install-files  install-systemd
37     $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)
38     $(INSTALL) -d $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants
39     $(INSTALL) -m 0644 systemd/mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR)
40     $(LN_S) ../mnt-cdrom.mount $(DESTDIR)/$(SYSTEMDUNITDIR)/local-fs.target.wants/mnt-cdrom.mount
41    
42    install: create-dirs install-files install-systemd
43    
44  clean:  clean:
45   $(RM) -f bin/installer.sh   $(RM) -f bin/installer.sh
46     $(RM) -f systemd/installer.service
47    
48  .PHONY: all install  .PHONY: all install

Legend:
Removed from v.2329  
changed lines
  Added in v.2332