Ignore GNUmakefile.in
[gedcom-parse.git] / Makefile
index 87673b74dd56cab60bfe4e9a30ebd7c5e3ff5d3f..46e7b694635eed28a44ccedcead99c4e613e7a42 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,43 +1,11 @@
 # $Id$
 # $Name$
-
-DMALLOC_CFLAGS=
-DMALLOC_LOADLIBES=
-CFLAGS=-g -W -Wall -pedantic $(DMALLOC_CFLAGS)
-CPPFLAGS=-I ./include
-YFLAGS=--debug --defines
-LFLAGS=-8
-LOADLIBES=$(DMALLOC_LOADLIBES)
-LDFLAGS_GEDCOM=-Lgedcom/.libs
-
-all:   ansel_module libgedcom gedcom_parse
-
-gedcom_parse:  standalone.o
-       $(CC) $(LDFLAGS) $(LDFLAGS_GEDCOM) -lgedcom $^ $(LOADLIBES) $(LDLIBS) -o $@
-
-libgedcom:
-       cd gedcom && $(MAKE) DMALLOC_CFLAGS=$(DMALLOC_CFLAGS) \
-       DMALLOC_LOADLIBES=$(DMALLOC_LOADLIBES)
-
-ansel_module:
-       cd ansel && $(MAKE)
-
-.PHONY:        clean
-clean:
-       rm -f core gedcom_parse *.o logfile
-       cd gedcom && $(MAKE) clean
-       cd ansel && $(MAKE) clean
-
-# Test of parser
-
-test:  all
-       @export GCONV_PATH=./ansel; \
-       export LD_LIBRARY_PATH=gedcom/.libs; \
-        for file in t/*.ged; do \
-         echo "=== testing $$file"; \
-         ./gedcom_parse -2 $$file; \
-       done
-
-testmem:       DMALLOC_CFLAGS=-DMALLOC
-testmem:       DMALLOC_LOADLIBES=-ldmalloc
-testmem:       clean test
+all:
+       @if test -r GNUmakefile; then \
+          echo Sorry, GNU make is required; \
+          case `gmake --version 2>/dev/null` in \
+            *GNU*) echo Try again with 'gmake' ;; \
+          esac; \
+       else \
+          echo Please run ./configure first; \
+       fi