File: Makefile

package info (click to toggle)
mmake 2.2.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 224 kB
  • ctags: 75
  • sloc: perl: 304; makefile: 242; sh: 169; java: 17
file content (78 lines) | stat: -rw-r--r-- 1,611 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
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
76
77
78
# Generated automatically from Makefile.in by configure.
#
#  SYNOPSIS
#     make {install|clean|uninstall}
#
# AUTHOR: 
#     Jan-Henrik Haukeland, <hauk@tildeslash.com>
#
# CVS INFO
#     $Id: Makefile.in,v 1.3 2001/02/10 21:57:42 hauk Exp $



# Programs (with common options):
SHELL           = /bin/sh
RM		= /bin/rm -f


INSTALL         = /usr/bin/install -c 
INSTALL_PROG    = $(INSTALL) -m $(MODE_PROGS)
INSTALL_FILE    = $(INSTALL) -m $(MODE_FILES)
INSTALL_DIR     = $(INSTALL) -m $(MODE_DIRS) -d

# Install modes 
MODE_PROGS      = 555
MODE_FILES      = 444
MODE_DIRS       = 755


# ------------------------------------------------------------------- #
prefix = /usr
exec_prefix = /usr

BINDIR 	= ${exec_prefix}/bin
MANDIR 	= ${prefix}/man/man1

# ------------------------------------------------------------------- #

# Name of program to build
PROG	= mmake
MAN_OBJS= mmake.1

# ------------------------------------------------------------------- #

define check-exit
|| exit 1

endef

# -------
# Targets
# -------
.PHONY: clean install uninstall

default: 
	@echo "Run 'make install' to install mmake in $(BINDIR)"

clean::
	$(RM) *~ \#* $(PROG) 

# remove configure files
clean::
	$(RM) config.cache config.log config.status

install:: $(PROG)
	$(INSTALL_DIR) $(BINDIR) $(check-exit)
	$(INSTALL_DIR) $(MANDIR) $(check-exit)
	$(INSTALL_PROG) $(PROG) $(BINDIR) $(check-exit)
	$(foreach file, $(MAN_OBJS), \
		$(INSTALL_FILE) $(file) $(MANDIR)/$(file) \
	$(check-exit))

uninstall:: 
	$(RM) $(BINDIR)/$(PROG) $(check-exit)
	$(foreach file, $(MAN_OBJS), \
		$(RM) $(MANDIR)/$(file) \
	$(check-exit))