File: Makefile

package info (click to toggle)
wp2x 2.5-mhi-13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 708 kB
  • ctags: 629
  • sloc: ansic: 2,068; makefile: 80; perl: 70; sh: 40
file content (40 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (2)
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
# Copyright (c) 2000 Martin Hinner <mhi@penguin.cz>
# The original Makefile was removed.

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

all:	wp2x

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

install:
	mkdir -p $(DESTDIR)$(BINDIR)
	mkdir -p $(DESTDIR)$(MANDIR)/man1
	mkdir -p $(DESTDIR)$(WP2X_DIR)
	make -C src install BINDIR=$(DESTDIR)$(BINDIR) \
		WP2X_DIR=$(DESTDIR)$(WP2X_DIR)
	make -C cfg install BINDIR=$(DESTDIR)$(BINDIR) \
		WP2X_DIR=$(DESTDIR)$(WP2X_DIR)
	make -C doc install MANDIR=$(DESTDIR)$(MANDIR) \
		WP2X_DIR=$(DESTDIR)$(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