File: Makefile.in

package info (click to toggle)
mmake 2.3-7
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 316 kB
  • ctags: 73
  • sloc: perl: 403; makefile: 273; sh: 152; java: 17
file content (77 lines) | stat: -rw-r--r-- 1,537 bytes parent folder | download | duplicates (8)
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
#
#  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         = @INSTALL@ 
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 = @prefix@
exec_prefix = @prefix@

BINDIR 	= @bindir@
MANDIR 	= @mandir@/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))