1# This is a sample Makefile for the previous perltidy installation 2# method in which perltidy was a single script. The installation using 3# Makefile.PL is preferred, but this might be helpful if you want to use 4# this old installation method to install a single perltidy script 5# instead. See the INSTALL file for more information. 6# 7# Step 0: Build the monolithic version of 'perltidy': 8# 'perl pm2pl' 9# and then verify that 'perltidy' works using something like: 10# perl ./perltidy lextest.pl 11 12# Step 1: edit BINDIR to reflect where you want to put perltidy 13# This is fairly standard: 14BINDIR = /usr/local/bin 15 16# Step 2: edit MANDIR to reflect where you want to put the man page, perltidy.1 17# or comment out MANDIR to skip installing a man page. 18# (Man pages can be found on the web at http://perltidy.sourceforge.net) 19# 20# Note: The value of MANDIR varies a lot, so be sure to check this. 21MANDIR = /usr/local/man/man1 22 23# Step 3: Then become superuser (if necessary) and issue the command 24# make install 25 26PROGRAM = perltidy 27 28install: $(PROGRAM) 29 cp $(PROGRAM) $(BINDIR)/$(PROGRAM) 30 chmod 755 $(BINDIR)/$(PROGRAM) 31 if test -d $(MANDIR); then cp docs/$(PROGRAM).1 $(MANDIR)/$(PROGRAM).1; \ 32 chmod 644 $(MANDIR)/$(PROGRAM).1; \ 33 fi 34 35uninstall: 36 if test -d $(BINDIR); then rm -f $(BINDIR)/$(PROGRAM); fi 37 if test -d $(MANDIR); then rm -f $(MANDIR)/$(PROGRAM).1; fi 38