2005-09-30 03:47:27 -04:00
|
|
|
$OpenBSD: patch-Makefile_am,v 1.3 2005/09/30 07:47:27 aanriot Exp $
|
|
|
|
--- Makefile.am.orig Fri Sep 30 07:30:26 2005
|
|
|
|
+++ Makefile.am Fri Sep 30 07:30:31 2005
|
2005-06-20 14:26:11 -04:00
|
|
|
@@ -1,13 +1,13 @@
|
2005-05-09 16:35:41 -04:00
|
|
|
-CC=gcc
|
|
|
|
-LIB=-lpcre -L./pcre-3.9/ -I./pcre-3.9/
|
2005-06-20 14:26:11 -04:00
|
|
|
+CC?=gcc
|
2005-05-09 16:35:41 -04:00
|
|
|
+LIB=-lpcre -L$(LOCALBASE)/lib
|
|
|
|
OPT=-O2
|
|
|
|
OPT_DEBUG=-ggdb -Wall -lefence
|
|
|
|
BINDIR=/bin
|
|
|
|
-DATADIR=/etc
|
|
|
|
+DATADIR=/share/amap
|
|
|
|
MANDIR=/man/man1
|
|
|
|
SCRIPTS=appdefs.trig appdefs.resp appdefs.rpc
|
|
|
|
MANPAGE=amap.1
|
|
|
|
-all: pcre strip
|
|
|
|
+all: amap amapcrap
|
|
|
|
|
|
|
|
pcre:
|
|
|
|
cd pcre-3.9 && make
|
2005-06-20 14:26:11 -04:00
|
|
|
@@ -35,14 +35,11 @@ debug: amap.c
|
2005-05-09 16:35:41 -04:00
|
|
|
|
|
|
|
install: all
|
|
|
|
@echo Installing to $(PREFIX), change this by running ./configure --prefix=path
|
|
|
|
- -mkdir -vp $(PREFIX)$(BINDIR) 2> /dev/null
|
|
|
|
- -mkdir -vp $(PREFIX)$(DATADIR) 2> /dev/null
|
2005-06-20 14:26:11 -04:00
|
|
|
- -mkdir -vp $(PREFIX)$(MANDIR) 2> /dev/null
|
|
|
|
- -test -e amap.exe || cp -f amap amap6 amapcrap $(PREFIX)$(BINDIR)
|
|
|
|
- -test -e amap.exe && cp -f amap.exe amapcrap.exe $(PREFIX)$(BINDIR) || echo
|
2005-05-09 16:35:41 -04:00
|
|
|
- -cp -f $(SCRIPTS) $(PREFIX)$(DATADIR)
|
|
|
|
- -cp -f $(MANPAGE) $(PREFIX)$(MANDIR)
|
2005-09-30 03:47:27 -04:00
|
|
|
- -test $(PREFIX)$(BINDIR)/amap6 || cd $(PREFIX)$(BINDIR) && ln -s amap amap6
|
2005-05-09 16:35:41 -04:00
|
|
|
+ @test -e amap && $(BSD_INSTALL_PROGRAM) amap amap6 amapcrap $(PREFIX)$(BINDIR)
|
2005-06-20 14:26:11 -04:00
|
|
|
+ @test -d $(PREFIX)$(MANDIR) || mkdir -p $(PREFIX)$(MANDIR)
|
2005-05-09 16:35:41 -04:00
|
|
|
+ $(BSD_INSTALL_MAN) $(MANPAGE) $(PREFIX)$(MANDIR)
|
2005-06-20 14:26:11 -04:00
|
|
|
+ @test -d $(PREFIX)$(DATADIR) || mkdir -p $(PREFIX)$(DATADIR)
|
2005-05-09 16:35:41 -04:00
|
|
|
+ $(BSD_INSTALL_SCRIPT) $(SCRIPTS) $(PREFIX)$(DATADIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
cd pcre-3.9 && make clean
|