From: leslie Date: Sat, 29 Dec 2007 13:41:56 +0000 (+0100) Subject: Makefile fixup X-Git-Tag: 0.8.7~37 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=03f825f37bf4af99ef848a59a858213f701cdba3;p=sasc-ng.git Makefile fixup --- diff --git a/.hgignore b/.hgignore index 0629a03..023c2bc 100644 --- a/.hgignore +++ b/.hgignore @@ -11,6 +11,7 @@ po/*.pot *.rej *.bak version.c +i18n.c syntax: regexp ^testing/test[^.]*$ diff --git a/Makefile b/Makefile index 56ded57..2f560fa 100644 --- 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.c + perl ./po2i18n.pl i18n.c version.c: FORCE @echo >$@.new "/* generated file, do not edit */"; \