2001-08-27 17:43:26 +02:00
|
|
|
--- makefile.orig Tue Jun 12 20:55:23 2001
|
|
|
|
+++ makefile Fri Aug 24 22:29:56 2001
|
2001-05-20 15:16:01 +02:00
|
|
|
@@ -7,14 +7,12 @@
|
|
|
|
# Set this for where to store the man pages and executables.
|
|
|
|
# If you want to store this as part of an official distribution,
|
|
|
|
# change this to "/usr":
|
|
|
|
-PREFIX=/usr/local
|
|
|
|
|
|
|
|
# Set "EXE_SUFFIX" to ".exe" if you're running on Windows, like this:
|
|
|
|
# EXE_SUFFIX=.exe
|
|
|
|
EXE_SUFFIX=
|
|
|
|
|
|
|
|
# Set this to your C compiler, if it's not "gcc"; a likely alternative is "cc":
|
|
|
|
-CC=gcc
|
|
|
|
|
|
|
|
# Set this to the name of your "install" program. On some systems,
|
|
|
|
# "install -C" would be useful (so unchanged files won't be modified),
|
2001-08-27 17:43:26 +02:00
|
|
|
@@ -37,7 +35,7 @@
|
2001-05-20 15:16:01 +02:00
|
|
|
ARCH=i386
|
|
|
|
VERSIONEDNAME=$(NAME)-$(VERSION)
|
|
|
|
INSTALL_DIR=$(PREFIX)/bin
|
|
|
|
-MAN_DIR=$(PREFIX)/share/man
|
|
|
|
+MAN_DIR=$(PREFIX)/man
|
|
|
|
MAN_DIR_MAN1=$(MAN_DIR)/man1
|
2001-08-27 17:43:26 +02:00
|
|
|
DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION)
|
2001-05-20 15:16:01 +02:00
|
|
|
POSTED_DIR=/home/dwheeler/dwheeler.com/sloccount
|
2001-08-27 17:43:26 +02:00
|
|
|
@@ -78,7 +76,7 @@
|
|
|
|
sql_count \
|
|
|
|
tcl_count
|
2001-05-20 15:16:01 +02:00
|
|
|
|
2001-08-27 17:43:26 +02:00
|
|
|
-MANPAGES=sloccount.1.gz
|
|
|
|
+MANPAGES=sloccount.1
|
2001-05-20 15:16:01 +02:00
|
|
|
|
2001-08-27 17:43:26 +02:00
|
|
|
MYDOCS=sloccount.html README TODO ChangeLog
|
|
|
|
|
|
|
|
@@ -86,10 +84,10 @@
|
2001-05-20 15:16:01 +02:00
|
|
|
all: lexcount1$(EXE_SUFFIX) c_count$(EXE_SUFFIX) java_count$(EXE_SUFFIX) sloccount.1.gz
|
|
|
|
|
|
|
|
lexcount1$(EXE_SUFFIX): lexcount1.c
|
|
|
|
- $(CC) lexcount1.c -o lexcount1$(EXE_SUFFIX)
|
|
|
|
+ $(CC) ${CFLAGS} lexcount1.c -o lexcount1$(EXE_SUFFIX)
|
|
|
|
|
|
|
|
c_count$(EXE_SUFFIX): c_count.c
|
|
|
|
- $(CC) c_count.c -o c_count$(EXE_SUFFIX)
|
|
|
|
+ $(CC) ${CFLAGS} c_count.c -o c_count$(EXE_SUFFIX)
|
|
|
|
|
|
|
|
sloccount.1.gz: sloccount.1
|
|
|
|
gzip -c sloccount.1 > sloccount.1.gz
|
2001-08-27 17:43:26 +02:00
|
|
|
@@ -100,18 +98,17 @@
|
2001-05-20 15:16:01 +02:00
|
|
|
|
|
|
|
# This is USC's code counter, not built by default:
|
|
|
|
c_lines: C_LINES.C
|
|
|
|
- $(CC) C_LINES.C -o c_lines$(EXE_SUFFIX)
|
|
|
|
+ $(CC) ${CFLAGS} C_LINES.C -o c_lines$(EXE_SUFFIX)
|
|
|
|
|
|
|
|
|
|
|
|
install_programs: all
|
2001-08-27 17:43:26 +02:00
|
|
|
- $(INSTALL) $(EXECUTABLES) $(INSTALL_DIR)
|
|
|
|
+ ${BSD_INSTALL_SCRIPT} $(EXECUTABLES) $(INSTALL_DIR)
|
|
|
|
|
|
|
|
uninstall_programs:
|
2001-05-20 15:16:01 +02:00
|
|
|
cd $(INSTALL_DIR) && rm -f $(EXECUTABLES)
|
|
|
|
|
|
|
|
install_man:
|
|
|
|
- $(INSTALL_A_DIR) $(MAN_DIR_MAN1)
|
2001-08-27 17:43:26 +02:00
|
|
|
- $(INSTALL) $(MANPAGES) $(MAN_DIR_MAN1)
|
|
|
|
+ ${BSD_INSTALL_MAN} $(MANPAGES) $(MAN_DIR_MAN1)
|
2001-05-20 15:16:01 +02:00
|
|
|
|
|
|
|
uninstall_man:
|
|
|
|
cd $(MAN_DIR_MAN1) && rm -f $(MANPAGES)
|