File: Makefile

package info (click to toggle)
wp2x 2.5-mhi-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 496 kB
  • ctags: 312
  • sloc: ansic: 2,061; makefile: 106; perl: 70; sh: 28
file content (36 lines) | stat: -rw-r--r-- 790 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
# Copyright (c) 2000 Martin Hinner <mhi@penguin.cz>
# The original Makefile was removed.

# Install paths adjusted for Debian by Dr. Guenter Bechly
DESTDIR =
WP2X_DIR = $(DESTDIR)/usr/share/wp2x
BINDIR = $(DESTDIR)/usr/bin
MANDIR = $(DESTDIR)/usr/share/man
VERSION = 2.5

all:	wp2x

wp2x:
	cd src && make wp2x WP2X_DIR=$(WP2X_DIR) VERSION=$(VERSION)

install:
	mkdir -p $(BINDIR)
	mkdir -p $(MANDIR)/man1
	mkdir -p $(WP2X_DIR)
	cd src && make install BINDIR=$(BINDIR) WP2X_DIR=$(WP2X_DIR)
	cd cfg && make install BINDIR=$(BINDIR) WP2X_DIR=$(WP2X_DIR)
	cd doc && make install MANDIR=$(MANDIR) WP2X_DIR=$(WP2X_DIR)

depend: 
	cd src && make depend

clean:
	rm -f *~ *.o core
	cd src && make clean
	cd cfg && make clean

test:	wp2x
	cd test && make test

gentest:wp2x
	cd test && make gentest