proper
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1199 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/examples/sample.source.LDAP3/Makefile b/examples/sample.source.LDAP3/Makefile
index 7fae0bd..d75f569 100644
--- a/examples/sample.source.LDAP3/Makefile
+++ b/examples/sample.source.LDAP3/Makefile
@@ -163,7 +163,7 @@
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = ldap3dump
-CFLAGS += -I. -DHAVE_CONFIG_H -DPDU=LDAPMessage
+CFLAGS += -DHAVE_CONFIG_H -DPDU=LDAPMessage -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
all: LDAPMessage.c $(TARGET)
@@ -188,13 +188,16 @@
LDAPMessage.c: ../sample.makefile.regen
+ make regen-makefile
+ @touch LDAPMessage.c
+ make
+
+regen-makefile:
ASN1CMDOPTS="-fcompound-names" \
ASN1MODULES="../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1" \
ASN1PDU=LDAPMessage \
PROGNAME=ldap3dump \
../sample.makefile.regen
- @touch LDAPMessage.c
- make
check: ${TARGET}
@if test -f ./sample-LDAPMessage-1.[db]er ; then \