aboutsummaryrefslogtreecommitdiff
path: root/pan
diff options
context:
space:
mode:
authorsubrata_modak <subrata_modak>2008-10-17 12:20:03 +0000
committersubrata_modak <subrata_modak>2008-10-17 12:20:03 +0000
commit9f03cbfc71d01769d41e98a9273b237313406b5e (patch)
treec881d12e8464a172290d248f4049b803d12be505 /pan
parentbd3b60daa0e8c0073d0231a934d0e3bc64d246a1 (diff)
Introduced PREFIX and LIBSUFFIX variables. DESTDIR is often used within packaging scripts/spec files. Use PREFIX variable instead to manipulate the installation destination directory. Introduced LIBSUFFIX to allow to manipulate library directory to lib64 e.g. for distribution packaging for x86_64 or others architectures. Signed-off-by: Daniel Gollub <dgollub@suse.de>.
Diffstat (limited to 'pan')
-rw-r--r--pan/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/pan/Makefile b/pan/Makefile
index 711771787..68f68caf5 100644
--- a/pan/Makefile
+++ b/pan/Makefile
@@ -2,7 +2,7 @@
LOADLIBES += -lm
LFLAGS += -l -w
CFLAGS += -w
-DESTDIR = /opt/ltp
+PREFIX = /opt/ltp
all: pan bump scanner
@@ -16,9 +16,9 @@ scanner: scan.o scanner.o reporter.o tag_report.o symbol.o splitstr.o debug.o
install: pan bump scanner
- install -D scanner $(DESTDIR)/bin/scanner
- install -D pan $(DESTDIR)/bin/pan
- install -D bump $(DESTDIR)/bin/bump
+ install -D scanner $(DESTDIR)/$(PREFIX)/bin/scanner
+ install -D pan $(DESTDIR)/$(PREFIX)/bin/pan
+ install -D bump $(DESTDIR)/$(PREFIX)/bin/bump
clean:
rm -f *.o pan bump scanner