]> www.vanbest.org Git - sasc-ng.git/commitdiff
Makefile fixup
authorleslie <unknown>
Sat, 29 Dec 2007 13:41:56 +0000 (14:41 +0100)
committerleslie <unknown>
Sat, 29 Dec 2007 13:41:56 +0000 (14:41 +0100)
.hgignore
Makefile

index 0629a03b32039030be6cd7991c2476db1c8586ae..023c2bc4f1cf064aeee3958407eb67ef5f46a34f 100644 (file)
--- a/.hgignore
+++ b/.hgignore
@@ -11,6 +11,7 @@ po/*.pot
 *.rej
 *.bak
 version.c
+i18n.c
 
 syntax: regexp
 ^testing/test[^.]*$
index 56ded570f86f82b2fafa0dc3525ac82bf787cdc4..2f560fa124129459ea367c3652d912ccf91ed38e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -135,8 +135,9 @@ export CXXFLAGS
 
 MAKEDEP = g++ -MM -MG
 DEPFILE = .dependencies
-$(DEPFILE): $(subst i18n.c,,$(OBJS:%.o=%.c)) $(wildcard *.h)
-       @$(MAKEDEP) $(DEFINES) $(SHAREDDEFINES) $(INCLUDES) $(subst i18n.c,,$(OBJS:%.o=%.c)) > $@
+DEPFILES = $(subst i18n.c,,$(subst version.c,,$(OBJS:%.o=%.c))) $(wildcard *.h)
+$(DEPFILE): $(DEPFILES) $(wildcard *.h)
+       @$(MAKEDEP) $(DEFINES) $(SHAREDDEFINES) $(INCLUDES) $(DEPFILES) > $@
 
 -include $(DEPFILE)
 
@@ -189,7 +190,7 @@ $(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/$(I18Nmo): $(PODIR)/%.mo
 i18n: $(I18Nmsgs)
 
 i18n.c: $(PODIR)/*.po i18n-template.c po2i18n.pl
-       ./po2i18n.pl <i18n-template.c >i18n.c
+       perl ./po2i18n.pl <i18n-template.c >i18n.c
 
 version.c: FORCE
        @echo >$@.new "/* generated file, do not edit */"; \