[go: up one dir, main page]

File: Makefile

package info (click to toggle)
s390-tools 1.6.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,160 kB
  • ctags: 3,968
  • sloc: ansic: 26,413; asm: 5,072; sh: 4,042; cpp: 1,518; perl: 1,299; makefile: 587
file content (39 lines) | stat: -rw-r--r-- 1,130 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
#==============================================================================
# Makefile for zSeries configuration utilities.
#==============================================================================
include ../common.mak

SCRIPTS	= lsdasd lstape lscss chccwdev lsqeth lszfcp lschp chchp
MANPAGES= lsdasd.8 lstape.8 lscss.8 chccwdev.8 lsqeth.8 lszfcp.8 lschp.8 \
	  chchp.8

all:

clean:

install:	install-scripts install-manpages

install-scripts:	$(SCRIPTS)
	@for i in $^; do \
		echo "Installing $$i; to $(BINDIR)"; \
		cat $$i | \
		sed -e 's+%S390_TOOLS_VERSION%+$(S390_TOOLS_RELEASE)+' \
		>$(BINDIR)/$$i; \
		chown $(OWNER).$(GROUP) $(BINDIR)/$$i; \
		chmod 755 $(BINDIR)/$$i; \
	done

install-manpages:	$(MANPAGES)
	@if [ ! -d $(MANDIR) ]; then \
		mkdir -p $(MANDIR)/man8; \
		chown $(OWNER).$(GROUP) $(MANDIR); \
		chown $(OWNER).$(GROUP) $(MANDIR)/man8; \
		chmod 755 $(MANDIR); \
		chmod 755 $(MANDIR)/man8; \
	fi; \
	for i in $^; do \
		echo "Installing $$i to $(MANDIR)/man8"; \
		install -o $(OWNER) -g $(GROUP) -m 644 $$i $(MANDIR)/man8; \
	done

.PHONY: all install clean install-scripts install-manpages