forked from BackupTheBerlios/pcitop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (44 loc) · 1007 Bytes
/
Makefile
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
47
48
49
50
51
52
53
# Makefile for hplba driver and tools used for interrogating and monitoring
# PCI root bridges and devices.
PWD := $(shell pwd)
SUBDIRS = drivers src
PACKAGE_NAME=pcitop
PACKAGE_VERSION=1.0.1
TARBALL=$(PACKAGE_NAME)-$(PACKAGE_VERSION).tgz
DIST_DIR=$(PACKAGE_NAME)-$(PACKAGE_VERSION)
DIST_FILES := \
AUTHORS \
COPYING \
ChangeLog \
FAQ \
INSTALL \
Makefile \
NEWS \
README \
TODO \
$(SUBDIRS)
prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
all:
@for subdir in $(SUBDIRS); do \
echo "Making target $@ in $$subdir"; \
(cd $$subdir && $(MAKE) $@) \
done
clean:
@for subdir in $(SUBDIRS); do \
echo "Making target $@ in $$subdir"; \
(cd $$subdir && $(MAKE) $@) \
done
-rm -f $(TARBALL)
-rm -rf $(DIST_DIR)
install:
@for subdir in $(SUBDIRS); do \
echo "Making target $@ in $$subdir"; \
(cd $$subdir && $(MAKE) $@) \
done
dist: clean
mkdir -p $(DIST_DIR)
cp -a $(DIST_FILES) $(DIST_DIR)
tar -czof $(TARBALL) $(DIST_DIR)
-rm -rf $(DIST_DIR)