btyacc (3.0-5) Makefile

Summary

 Makefile |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

--- btyacc-3.0.orig/Makefile
+++ btyacc-3.0/Makefile
@@ -2,15 +2,18 @@
 # Makefile for BtYacc.
 #
 
-VERSION       = 3-0
+# Edited for Debian GNU/Linux.
+DESTDIR =
+
+VERSION       = 3.0
 
 DEST	      = .
 
 HDRS	      = defs.h mstring.h
 
-CFLAGS	      = -g -Wall -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS	      = -g -Wall -O2 -Wstrict-prototypes -Wmissing-prototypes
 
-LDFLAGS	      = -static
+LDFLAGS	      = #-static
 
 LIBS	      =
 
@@ -51,7 +54,7 @@
 index:;		ctags -wx $(HDRS) $(SRCS)
 
 install:	$(PROGRAM)
-		cp $(PROGRAM).exe /bin
+		install $(PROGRAM) $(DESTDIR)/usr/bin
 
 oldinstall:	$(PROGRAM)
 		@echo Installing $(PROGRAM) in $(DEST)
@@ -79,11 +82,14 @@
 		mv btyacc.zip btyacc-$(VERSION).zip
 
 skeleton.c: btyaccpa.ske skel2c
-		awk -f skel2c btyaccpa.ske >skeleton.c
+		awk -f skel2c btyaccpa.ske > skeleton.c
 
 etags TAGS:
 		etags *.c *.h
 
+btyacc.1:	btyacc.sgml
+		docbook-to-man btyacc.sgml > btyacc.1
+
 ###
 closure.o: defs.h
 error.o: defs.h