~ubuntu-branches/ubuntu/hoary/s390-tools/hoary

« back to all changes in this revision

Viewing changes to zfcpdump/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2004-06-27 18:45:15 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040627184515-q7lnvli1j94gr6dv
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Toplevel Makefile for zfcpdump
 
3
#
 
4
# Copyright (C) 2003 IBM Deutschland Entwicklung GmbH, IBM Corporation
 
5
# Author(s): Michael Holzheu <holzheu@de.ibm.com>
 
6
#
 
7
 
 
8
-include ../common.mak
 
9
-include ./config
 
10
 
 
11
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
 
12
 
 
13
CFLAGS    := -O2  -Wall
 
14
 
 
15
all: subdirs_make
 
16
 
 
17
SUB_DIRS = kernel ramdisk
 
18
 
 
19
subdirs_make:
 
20
        /bin/sh ./get_files.sh -c; if [ "$$?" != "0" ] ; then exit ; fi; \
 
21
        for dir in $(SUB_DIRS) ; do \
 
22
                ( cd $$dir && \
 
23
                        $(MAKE) ARCH=$(ARCH) ) \
 
24
                || exit $?; \
 
25
        done
 
26
 
 
27
clean:
 
28
        for dir in $(SUB_DIRS) ; do \
 
29
                ( cd $$dir && \
 
30
                        $(MAKE) ARCH=$(ARCH) clean ) \
 
31
                || exit $$?; \
 
32
        done
 
33
 
 
34
clobber: clean
 
35
        for dir in $(SUB_DIRS) ; do \
 
36
                (cd $$dir && \
 
37
                        $(MAKE) ARCH=$(ARCH) clobber) \
 
38
                || exit $$?; \
 
39
        done
 
40
 
 
41
install: subdirs_make
 
42
        if [ ! -d $(INSTROOT)/$(ZFCPDUMP_DIR) ]; then install -d $(INSTROOT)/$(ZFCPDUMP_DIR) -m 775; fi ; \
 
43
        for dir in $(SUB_DIRS) ; do \
 
44
                (cd $$dir && $(MAKE) ARCH=$(ARCH) install) \
 
45
                || exit $$?; \
 
46
        done