You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_ftp-commits@incubator.apache.org by wr...@apache.org on 2006/10/13 01:11:31 UTC

svn commit: r463540 - /incubator/mod_ftp/trunk/modules/ftp/Makefile

Author: wrowe
Date: Thu Oct 12 18:11:30 2006
New Revision: 463540

URL: http://svn.apache.org/viewvc?view=rev&rev=463540
Log:
Closer, if you define PREFIX=/path/to/apxs, or if it's found
in your path.  But still, not up to snuff.

Modified:
    incubator/mod_ftp/trunk/modules/ftp/Makefile

Modified: incubator/mod_ftp/trunk/modules/ftp/Makefile
URL: http://svn.apache.org/viewvc/incubator/mod_ftp/trunk/modules/ftp/Makefile?view=diff&rev=463540&r1=463539&r2=463540
==============================================================================
--- incubator/mod_ftp/trunk/modules/ftp/Makefile (original)
+++ incubator/mod_ftp/trunk/modules/ftp/Makefile Thu Oct 12 18:11:30 2006
@@ -3,10 +3,11 @@
 ##  Autogenerated via ``apxs -n ftp -g''.
 ##
 
+PREFIX=`apxs -q PREFIX`
 builddir=.
-top_srcdir=../..
-top_builddir=../..
-include /usr/local/apache20/build/special.mk
+top_srcdir=$(PREFIX)
+top_builddir=$(PREFIX)
+include $(top_builddir)/build/special.mk
 
 #   the used tools
 APXS=apxs
@@ -14,7 +15,7 @@
 
 #   additional defines, includes and libraries
 #DEFS=-Dmy_define=my_value
-INCLUDES=-I$(top_srcdir)/../include
+INCLUDES=-I$(builddir)/../../include
 #LIBS=-Lmy/lib/dir -lmylib
 
 #   the default target
@@ -22,6 +23,10 @@
 
 #   install the shared object file into Apache 
 install: install-modules
+
+$(builddir)/../../include/ftp_protocol.h: $(builddir)/../../include/mod_ftp.h \
+		$(builddir)/ftp_commands.c
+	./remake_ftp_protocol > $(builddir)/../../include/ftp_protocol.h
 
 #   cleanup
 clean: