File: Makefile.npm

package info (click to toggle)
perltidy 20031021-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,364 kB
  • ctags: 591
  • sloc: perl: 16,452; makefile: 46
file content (37 lines) | stat: -rw-r--r-- 1,384 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
# This is a sample Makefile for the previous perltidy installation
# method in which perltidy was a single script.  The installation using
# Makefile.PL is preferred, but this might be helpful if you want to use
# this old installation method to install a single perltidy script
# instead. See the INSTALL file for more information.  
#
# Step 0: Build the monolithic version of 'perltidy':
#         'perl pm2pl'
#     and then verify that 'perltidy' works using something like:
#         perl ./perltidy lextest.pl

# Step 1: edit BINDIR to reflect where you want to put perltidy
# This is fairly standard:
BINDIR	= /usr/local/bin

# Step 2: edit MANDIR to reflect where you want to put the man page, perltidy.1
# or comment out MANDIR to skip installing a man page.
# (Man pages can be found on the web at http://perltidy.sourceforge.net)
#
# Note: The value of MANDIR varies a lot, so be sure to check this.
MANDIR	= /usr/local/man/man1

# Step 3: Then become superuser (if necessary) and issue the command
# make install

PROGRAM	= perltidy

install: $(PROGRAM)
	cp $(PROGRAM) $(BINDIR)/$(PROGRAM)
	chmod 755 $(BINDIR)/$(PROGRAM)
	if test -d $(MANDIR); then cp docs/$(PROGRAM).1 $(MANDIR)/$(PROGRAM).1; \
	chmod 644 $(MANDIR)/$(PROGRAM).1; \
	fi

uninstall: 
	if test -d $(BINDIR); then rm -f $(BINDIR)/$(PROGRAM); fi
	if test -d $(MANDIR); then rm -f $(MANDIR)/$(PROGRAM).1; fi