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 (28 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (2)
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
# Install the netboot image build scripts as samples

include ../common.mak

SCRIPTS = mk-s390image mk-pxelinux-ramfs
NETBOOT_SAMPLEDIR=$(TOOLS_DATADIR)/netboot

all:

install: install-scripts
	$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 \
		Dockerfile Makefile.pxelinux.0 README.md mk-s390image.1 \
		$(DESTDIR)$(NETBOOT_SAMPLEDIR)

install-scripts: $(SCRIPTS)
	@if [ ! -d $(DESTDIR)$(NETBOOT_SAMPLEDIR) ]; then \
		mkdir -p $(DESTDIR)$(NETBOOT_SAMPLEDIR); \
		chown $(OWNER):$(GROUP) $(DESTDIR)$(NETBOOT_SAMPLEDIR); \
		chmod 755 $(DESTDIR)$(NETBOOT_SAMPLEDIR); \
	fi; \
	for i in $^; do \
		$(SED) -e 's/%S390_TOOLS_VERSION%/$(S390_TOOLS_RELEASE)/' \
		< $$i >$(DESTDIR)$(NETBOOT_SAMPLEDIR)/$$i; \
		chown $(OWNER):$(GROUP) $(DESTDIR)$(NETBOOT_SAMPLEDIR)/$$i; \
		chmod 755 $(DESTDIR)$(NETBOOT_SAMPLEDIR)/$$i; \
	done

.PHONY: all install clean install-scripts