Subversion Repositories svn LFS-FR

Compare Revisions

Ignore whitespace Rev 7098 → Rev 7099

/branches/LFS_po_dev/tools/Makefile
9,8 → 9,9
VERSION = trunk
DIFFDIR = diff
 
filestocopy := INSTALL process-scripts.sh obfuscate.sh pdf-fixups.sh README tidy.conf general.ent packages.ent patches.ent Makefile bootscripts udev-lfs aux-file-data.sh make-aux-files.sh
COPY:=$(addprefix $(GENDIR)/,$(filestocopy))
filestocopy := INSTALL process-scripts.sh obfuscate.sh pdf-fixups.sh README bootscripts udev-lfs aux-file-data.sh make-aux-files.sh
filestoget := $(filestocopy) packages.ent tidy.conf patches.ent general.ent Makefile
COPY:=$(addprefix $(GENDIR)/,$(filestoget))
REV=systemd
VERSION_LINE=4
BASEDIR=../html
32,13 → 33,11
 
 
 
.PHONY: $(GENDIR)/stylesheets $(GENDIR)/images $(PODIR) $(ORIGDIR) svnup include.mk targets.mk
.PHONY: $(GENDIR)/stylesheets $(GENDIR)/images svnup
 
all: genhtml
@echo DONE
 
include targets.mk
 
include.mk: $(ORIGDIR)
echo -n 'XML := ' > $@
ls $(ORIGDIR)/*.xml $(ORIGDIR)/*/*.xml | sed 's|$(ORIGDIR)/|$(GENDIR)/|g' | tr '\n' ' ' >> $@
46,21 → 45,16
echo -n 'PO := ' >> $@
ls $(ORIGDIR)/*.xml $(ORIGDIR)/*/*.xml | sed 's|$(ORIGDIR)/|$(PODIR)/|g' | sed 's|.xml$$|.po|g' | tr '\n' ' ' >> $@
 
targets.mk: $(ORIGDIR)
echo > $@
for tgt in $(filestocopy) $(shell cd $(ORIGDIR); find -name '*.bz2'); do \
if [ "$$tgt" == "packages.ent" ] || [ "$$tgt" == "tidy.conf" ] \
|| [ "$$tgt" == "patches.ent" ] || [ "$$tgt" == "general.ent" ] \
|| [ "$$tgt" == "Makefile" ]; then\
continue;\
fi;\
echo $(GENDIR)/$$tgt: $(ORIGDIR)/$$tgt $(GENDIR) >> $@;\
echo -e '\tcp -r \$$< \$$@' >> $@;\
done
 
 
.SECONDEXPANSION:
$(addprefix $(GENDIR)/,$(filestocopy)): INPUT=$(ORIGDIR)$(subst $(GENDIR),,$@)
$(addprefix $(GENDIR)/,$(filestocopy)): $$(INPUT) $(GENDIR)
cp -r $< $@
 
genhtml: $(XML) $(GENDIR)/stylesheets $(GENDIR)/images $(COPY)
echo $(filestocopy)
echo $(XML)
$(MAKE) -j1 -C $(GENDIR) REV=$(REV) BASEDIR=$(BASEDIR)
 
genpdf: $(XML) $(GENDIR)/stylesheets $(GENDIR)/images $(COPY)
155,7 → 149,7
fi
 
clean:
rm -rf $(DIFFDIR) $(GENDIR) $(PODIR) $(ORIGDIR) stylesheets images include.mk html pdf targets.mk
rm -rf $(DIFFDIR) $(GENDIR) $(PODIR) $(ORIGDIR) stylesheets images include.mk html pdf
 
$(ORIGDIR)/%.xml: $(ORIGDIR)