dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added rule that can be used to avoid unnecessary recompilation of
[gedcom-parse.git]
/
Makefile.inc
1
## File to include in other Makefile's, defining common commands and rules
2
# $Id$
3
# $Name$
4
5
define replace-VERSION
6
cd $(distdir); \
7
for file in $(VERSIONED_FILES); do \
8
sed 's/\@VERSION\@/${VERSION}/' $$file > $$file.new; \
9
rm $$file; \
10
mv $$file.new $$file; \
11
done
12
endef
13
14
%.tabgen.h: %.tab.h
15
if [ ! -r $@ ] ; \
16
then \
17
touch $@; \
18
fi
19
if ! diff -q $< $@ > /dev/null; \
20
then \
21
rm $@; \
22
cp $< $@; \
23
fi