File: Makefile

package info (click to toggle)
s390-tools 2.40.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,288 kB
  • sloc: ansic: 187,079; sh: 12,157; cpp: 5,049; makefile: 2,812; perl: 2,541; asm: 1,097; python: 697; xml: 29
file content (46 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
include ../common.mak

SYSTEM_UNITS = ttyrun-getty@.service iucvtty-login@.service \
               cpacfstatsd.service cpuplugd.service \
               dumpconf.service cpi.service \
               mon_fsstatd.service mon_procd.service \
               opticsmon.service

all:

system_units: $(SYSTEM_UNITS)

check:

ifneq (${SYSTEMDSYSTEMUNITDIR},)

install: system_units
	for unit in $(SYSTEM_UNITS); do \
	  $(INSTALL) -g $(GROUP) -o $(OWNER) \
	             -m 644 $$unit $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR) ; \
	done

else

install:

endif

clean:
	rm -f $(SYSTEM_UNITS)

%: %.in
	real_bin_dir=$(BINDIR); \
	real_usrbin_dir=$(USRBINDIR); \
	real_usrsbin_dir=$(USRSBINDIR); \
	real_toolslib_dir=$(TOOLS_LIBDIR); \
	real_sysconf_dir=$(SYSCONFDIR); \
	$(SED) -e "s#@bin_path@#$$real_bin_dir#g" \
	       -e "s#@usrbin_path@#$$real_usrbin_dir#g" \
	       -e "s#@usrsbin_path@#$$real_usrsbin_dir#g" \
	       -e "s#@toolslib_path@#$$real_toolslib_dir#g" \
	       -e "s#@sysconf_path@#$$real_sysconf_dir#g" \
	       -e 's#@S390_TOOLS_RELEASE@#$(S390_TOOLS_RELEASE)#g' \
	< $< > $@

.PHONY: all check install clean system_units