File: Makefile.in

package info (click to toggle)
pmw 1:4.30-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,128 kB
  • sloc: ansic: 26,369; makefile: 337; sh: 255
file content (75 lines) | stat: -rw-r--r-- 2,237 bytes parent folder | download | duplicates (4)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Makefile.in for PMW. The building work is done by a separate Makefile in
# the src directory, which gets passed settings from here.

mkinstalldirs = $(SHELL) mkinstalldirs

# These variables get set up by the configure script.

CC=@CC@
CFLAGS=@CFLAGS@
NO_PMWRC=@NO_PMWRC@

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@

BINDIR=$(DESTDIR)@prefix@/bin
DATADIR=$(DESTDIR)@prefix@/share/pmw
MANDIR=$(DESTDIR)@prefix@/man

# BINDIR is the directory in which the pmw command is installed.
# DATADIR is the directory in which the fontmetrics, the PostScript fonts,
#   and the PostScript header file are installed, in a subdirectory called pmw.
# MANDIR is the directory in which the man pages are installed.

# The compile commands can be very long. To make the output look better,
# they are not normally echoed in full. To get full echoing, the caller
# must set FULLECHO='' on the command line and call make with -e. We default
# FULLECHO to '@' to suppress the full echo. Then define an abbreviation.

FULLECHO = @
FE       = $(FULLECHO)

build:; @cd src; \
        $(MAKE) all \
        BINDIR=$(BINDIR) \
        DATADIR=$(DATADIR) \
        MANDIR=$(MANDIR) \
        CC="$(CC)" \
        CFLAGS="$(CFLAGS)" \
        NO_PMWRC="$(NO_PMWRC)" \
        FE="$(FE)" \
        $(MFLAGS)

clean:; cd src; $(MAKE) clean

distclean:;     rm Makefile config.cache config.log config.status; \
                cd src; $(MAKE) clean

test:; cd testdist; ./RunTests

# "Standard" name for testing
check: test ;

install:        build
		$(mkinstalldirs) $(BINDIR)
		$(mkinstalldirs) $(DATADIR)
		$(mkinstalldirs) $(DATADIR)/psfonts
		$(mkinstalldirs) $(DATADIR)/fontmetrics
		$(mkinstalldirs) $(MANDIR)
		$(mkinstalldirs) $(MANDIR)/man1
		$(INSTALL) src/pmw $(BINDIR)/pmw
		$(INSTALL_DATA) PSheader $(DATADIR)
		$(INSTALL_DATA) MIDIvoices $(DATADIR)
		$(INSTALL_DATA) MIDIperc $(DATADIR)
		$(INSTALL_DATA) psfonts/PMW-Music.pfa $(DATADIR)/psfonts
		$(INSTALL_DATA) psfonts/PMW-Alpha $(DATADIR)/psfonts
		$(INSTALL_DATA) fontmetrics/* $(DATADIR)/fontmetrics
		$(INSTALL_DATA) doc/pmw.1 $(MANDIR)/man1
		./post-install "$(BINDIR)" "$(DATADIR)" "$(MANDIR)"

uninstall:;     rm -rf \
		$(BINDIR)/pmw \
		$(DATADIR) \
		$(MANDIR)/man1/pmw.1	

# End