Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/src/systemd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2247 - (hide annotations) (download)
Mon Jan 13 13:35:12 2014 UTC (10 years, 4 months ago) by niro
File size: 641 byte(s)
-added Makefile
1 niro 2247
2     include ../../Makefile.inc
3    
4     SYSTEMDSYSTEMUNITDIR = $(shell $(PKGCONFIG) --variable=systemdsystemunitdir systemd)
5     SYSTEMDSYSTEMCONFDIR = $(shell $(PKGCONFIG) --variable=systemdsystemconfdir systemd)
6     RUNDIR = /run
7    
8     FILES = mcored.service
9    
10     SCRIPT_SED_LINES += \
11     -e "s:@@SYSTEMDSYSTEMUNITDIR@@:$(SYSTEMDSYSTEMUNITDIR):g" \
12     -e "s:@@SYSTEMDSYSTEMCONFDIR@@:$(SYSTEMDSYSTEMCONFDIR):g"
13    
14     all: $(FILES)
15    
16     install: install-client-services-systemd
17    
18     install-client-services-systemd:
19     $(INSTALL) -d $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
20     $(INSTALL) -m0644 mcored.service $(DESTDIR)/$(SYSTEMDSYSTEMUNITDIR)
21    
22     clean:
23     rm -f $(FILES)
24    
25     .PHONY: all install clean