pkgsrc/devel/pmccabe/patches/patch-aa
agc c0cb2b0656 Initial import of pmccabe-2.2-3 into the Packages Collection, suggested
by Mike Cheponis.

	pmccabe processes the named files, or standard input if none
	are named, calculating statistics including McCabe cyclomatic
	complexity for each function found.  The files are expected to
	be either C (ANSI or K&R) or C++.

	pmccabe ignores all cpp preprocessor directives - calculating
	the complexity of the appearance of the code rather than the
	complexity after the preprocessor mangles the code.  This is
	especially important since simple things like getchar(3)
	expand into macros which increase complexity.
2005-02-24 11:19:00 +00:00

39 lines
1 KiB
Text

$NetBSD: patch-aa,v 1.1.1.1 2005/02/24 11:19:00 agc Exp $
--- Makefile 2005/02/24 10:53:19 1.1
+++ Makefile 2005/02/24 10:55:17
@@ -10,7 +10,7 @@
###############{
# On HP-UX you will have to change this
-INSTALL = install -o root -g root
+#INSTALL = install -o root -g root
DESTDIR =
@@ -30,7 +30,7 @@
all: $(PROGS) test
test: $(PROGS)
- ./testsuite
+ ksh ./testsuite
pmccabe: $(PMOBJS)
$(CC) $(CFLAGS) -o pmccabe $(PMOBJS)
@@ -39,12 +39,10 @@
rm -f *.[oa] pmccabe decomment *.out */*.out
install: $(PROGS) $(MANPGS) $(DOCS)
- $(INSTALL) -d $(DESTDIR)/usr/share/doc/pmccabe \
- $(DESTDIR)/usr/share/man/man1 \
- $(DESTDIR)/usr/bin
- $(INSTALL) -m 644 $(MANPGS) $(DESTDIR)/usr/share/man/man1
- #$(INSTALL) -m 644 $(DOCS) $(DESTDIR)/usr/share/doc/pmccabe
- $(INSTALL) -m 755 $(PROGS) $(DESTDIR)/usr/bin
+ $(INSTALL) -d $(DESTDIR)/${PREFIX}/man/man1
+ $(INSTALL) -d $(DESTDIR)/${PREFIX}/bin
+ $(INSTALL) -m 644 $(MANPGS) $(DESTDIR)/${PREFIX}/man/man1
+ $(INSTALL) -m 755 $(PROGS) $(DESTDIR)/${PREFIX}/bin
###############}