build the header here then copy it over
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 6 Jun 2005 18:00:28 +0000 (18:00 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 6 Jun 2005 18:00:28 +0000 (18:00 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@330 9efc2488-bf62-4759-914b-345cdb29e865

src/utils/Makefile

index e168156..5c4d7bb 100644 (file)
@@ -3,8 +3,9 @@ LIB_DIR         = ../../lib
 CC_OPTS                = -fPIC -Wall -O2  -I ../../include 
 EXE_LD_OPTS = -L $(LIB_DIR) 
 INCLUDE                = ../../include
-FM_HEADER      = $(INCLUDE)/opensrf/fieldmapper.h
+FM_HEADER      = fieldmapper.h
 FM_SOURCE      = fieldmapper.c
+HEADER_DIR  = $(INCLUDE)/opensrf
 
 all: util fieldmapper
 
@@ -18,6 +19,7 @@ fieldmapper: fieldmapper-c.pl
        perl fieldmapper-c.pl $(FM_HEADER) $(FM_SOURCE)
        $(CC) -c $(CC_OPTS) fieldmapper.c -o fieldmapper.o
        $(CC) -shared -W1 fieldmapper.o -o $(LIB_DIR)/libopensrf_fm.so
+       cp $(FM_HEADER) $(HEADER_DIR)/
 
 clean:
        /bin/rm -f md5.o