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.
7 # Step 0: Build the monolithic version of 'perltidy':
9 # and then verify that 'perltidy' works using something like:
10 # perl ./perltidy lextest.pl
12 # Step 1: edit BINDIR to reflect where you want to put perltidy
13 # This is fairly standard:
14 BINDIR = /usr/local/bin
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)
20 # Note: The value of MANDIR varies a lot, so be sure to check this.
21 MANDIR = /usr/local/man/man1
23 # Step 3: Then become superuser (if necessary) and issue the command
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; \
36 if test -d $(BINDIR); then rm -f $(BINDIR)/$(PROGRAM); fi
37 if test -d $(MANDIR); then rm -f $(MANDIR)/$(PROGRAM).1; fi