dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Portability fix: isdigit expects unsigned char.
[gedcom-parse.git]
/
Makefile.inc
diff --git
a/Makefile.inc
b/Makefile.inc
index a8e17c75fc46f4b0a44b05296e7448c6b214cbdb..aa01812cf7e657818cd3b060b17d25fef09da4e0 100644
(file)
--- a/
Makefile.inc
+++ b/
Makefile.inc
@@
-12,12
+12,14
@@
define replace-VERSION
endef
%.tabgen.h: %.tab.h
endef
%.tabgen.h: %.tab.h
- if [ ! -r $@ ] ; \
+ if [ ! -r $
(srcdir)/$
@ ] ; \
then \
then \
- touch $@; \
+ touch $
(srcdir)/$
@; \
fi
fi
- if
! diff -q $< $@ > /dev/null
; \
+ if
diff $< $(srcdir)/$@ > /dev/null 2>&1
; \
then \
then \
- rm $@; \
- cp $< $@; \
+ : ; \
+ else \
+ rm $(srcdir)/$@; \
+ cp $(srcdir)/$< $(srcdir)/$@; \
fi
fi