File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 11DOCKER_ENV =changkun/modern-cpp-tutorial:build-env
2+ TARGET  = pdf epub
23LANGS  = zh-cn en-us
3- ALL_BUILDS  = website pdf epub 
4+ ALL_BUILDS  = website $( TARGET ) 
45
56#  dep
67
78all : $(ALL_BUILDS ) 
89
9- pdf : $(LANGS ) 
10- $(LANGS )  :
11- 	cd  pdf/$@  &&  make &&  make clean
12- 	mkdir -p website/public/modern-cpp/pdf
13- 	mv pdf/$@ /modern-cpp-tutorial.pdf website/public/modern-cpp/pdf/modern-cpp-tutorial-$@ .pdf
14- 
15- epub : $(LANGS ) 
16- $(LANGS )  :
17- 	cd  epub/$@  &&  make &&  make clean
18- 	mkdir -p website/public/modern-cpp/epub
19- 	mv epub/$@ /modern-cpp-tutorial.epub website/public/modern-cpp/epub/modern-cpp-tutorial-$@ .epub
10+ $(TARGET )  : $(LANGS ) 
11+ 	mkdir -p website/public/modern-cpp/$@ /
12+ 	for  lang  in  $^ ;  do  \
13+ 		cd  $@ /$$ {lang} &&  make &&  make clean &&  cd  ../..;  \ 
14+ 		mv $@ /$$ {lang}/modern-cpp-tutorial.$@  website/public/modern-cpp/$@ /modern-cpp-tutorial-$$ {lang}.$@ ;  \ 
15+ 	done 
2016
2117website :
2218	cd  website &&  make
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments