Created
August 15, 2012 22:57
-
-
Save neilus/3364448 to your computer and use it in GitHub Desktop.
webpage makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: 404 zseries storage pseries contact scripts doc/all_references.html | |
scripts := src/head.sh src/head.htm src/menu.htm src/footer.sh | |
scripts: | |
touch tmp/scripts | |
clean: | |
rm -f doc/*.html | |
rm -f tmp/* | |
contact: doc/contact.html doc/contact_expanded.html | |
doc/contact.html: content/contact.htm $(scripts) | |
src/head.sh "${notdir ${patsubst %.html,%,$@}}" "Contact Us!" `cat content/contact_links.txt|sed 's/TARGET/${notdir ${patsubst %_expanded.html,%.html,$@}}/'|sed 's/EXPAND=/COLLAPSE=/'`>$@ | |
cat content/contact.htm >>$@ | |
src/footer.sh `cat content/${notdir ${patsubst %.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %.html,%_expanded.html,$@}}/'`>>$@ | |
##src/footer.sh `cat content/links.txt`>>$@ | |
doc/contact_expanded.html: content/contact.htm $(scripts) | |
src/head.sh "${notdir ${patsubst %.html,%,$@}}" "Contact Us!" `cat content/contact_links.txt|sed 's/TARGET/${notdir ${patsubst %_expanded.html,%.html,$@}}/'|sed 's/EXPAND=/COLLAPSE=/'`>$@ | |
cat content/contact.htm >>$@ | |
src/footer.sh `cat content/${notdir ${patsubst %_expanded.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %_expanded.html,%.html,$@}}/'|sed 's/EXPAND=/COLLAPSE=/'`>>$@ | |
404:doc/404.html | |
doc/404.html: content/404.txt $(scripts) | |
cat src/head.htm>doc/404.html | |
src/process.sh "404 ERROR" content/404.txt>>doc/404.html | |
src/footer.sh >>doc/404.html | |
rm -f doc/missing.html | |
ln doc/404.html doc/missing.html | |
zseries : index references services knowledge education certifications $(scripts) | |
index: doc/index.html doc/index_expanded.html | |
references: doc/references.html doc/references_expanded.html | |
services: doc/services.html doc/services_expanded.html | |
knowledge: doc/knowledge.html doc/knowledge_expanded.html | |
education: doc/education.html doc/education_expanded.html | |
certifications: doc/certifications.html doc/certifications_expanded.html | |
pseries : pseries_index pseries_references pseries_services pseries_knowledge pseries_education pseries_certifications $(scripts) | |
pseries_index: doc/pseries_index.html doc/pseries_index_expanded.html | |
pseries_references: doc/pseries_references.html doc/pseries_references_expanded.html | |
pseries_services: doc/pseries_services.html doc/pseries_services_expanded.html | |
pseries_knowledge: doc/pseries_knowledge.html doc/pseries_knowledge_expanded.html | |
pseries_education: doc/pseries_education.html doc/pseries_education_expanded.html | |
pseries_certifications: doc/pseries_certifications.html doc/pseries_certifications_expanded.html | |
storage : storage_index storage_references storage_services storage_knowledge storage_education storage_certifications $(scripts) | |
storage_index: doc/storage_index.html doc/storage_index_expanded.html | |
storage_references: doc/storage_references.html doc/storage_references_expanded.html | |
storage_services: doc/storage_services.html doc/storage_services_expanded.html | |
storage_knowledge: doc/storage_knowledge.html doc/storage_knowledge_expanded.html | |
storage_education: doc/storage_education.html doc/storage_education_expanded.html | |
storage_certifications: doc/storage_certifications.html doc/storage_certifications_expanded.html | |
#ez itt alant gyönnyörũ!!!! :) | |
doc/%ndex_expanded.html:content/%ndex_title.txt content/%ndex_links.txt content/%ndex.txt $(scripts) src/mkindex.sh | |
src/head.sh "${notdir ${patsubst %.html,%,$@}}" "`cat content/${notdir ${patsubst %_expanded.html,%_title.txt,$@}}|sed s/ICSS//`" `cat content/${notdir ${patsubst %_expanded.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %_expanded.html,%.html,$@}}/'|sed 's/EXPAND=/COLLAPSE=/'`>$@ | |
src/mkindex.sh content/${notdir ${patsubst %_expanded.html,%_title.txt,$@}} content/${notdir ${patsubst %_expanded.html,%.txt,$@}}>>$@ | |
src/footer.sh `cat content/${notdir ${patsubst %_expanded.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %_expanded.html,%.html,$@}}/'|sed 's/EXPAND=/COLLAPSE=/'`>>$@ | |
doc/%ndex.html:content/%ndex.txt content/%ndex_title.txt content/%ndex_links.txt $(scripts) src/mkindex.sh | |
src/head.sh "${notdir ${patsubst %.html,%,$@}}" "`cat content/${notdir ${patsubst %.html,%_title.txt,$@}}|sed s/ICSS//`" `cat content/${notdir ${patsubst %.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %.html,%_expanded.html,$@}}/'|sed 's/EXPAND=/COLLAPSE=/'`>$@ | |
src/mkindex.sh content/${notdir ${patsubst %.html,%_title.txt,$@}} content/${notdir ${patsubst %.html,%.txt,$@}}>>$@ | |
src/footer.sh `cat content/${notdir ${patsubst %.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %.html,%_expanded.html,$@}}/'`>>$@ | |
doc/%_expanded.html:content/%.txt content/%_links.txt $(scripts) src/process.sh | |
src/head.sh "${notdir ${patsubst %.html,%,$@}}" "${notdir ${patsubst %_expanded.html,%,$@}}" `cat content/${notdir ${patsubst %_expanded.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %_expanded.html,%.html,$@}}/'|sed 's/EXPAND=/COLLAPSE=/'`>$@ | |
src/process.sh "${notdir ${patsubst %_expanded.html,%,$@}}" expanded content/${notdir ${patsubst %_expanded.html,%.txt,$@}}>>$@ | |
### IDE MÉG BE KELL PASTELNI A 49. SORT!!!!! HA ELKÉSZÜL | |
src/footer.sh `cat content/${notdir ${patsubst %_expanded.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %_expanded.html,%.html,$@}}/'|sed 's/EXPAND=/COLLAPSE=/'`>>$@ | |
doc/%.html:content/%.txt content/%_links.txt $(scripts) src/process.sh | |
src/head.sh "${notdir ${patsubst %.html,%,$@}}" "${notdir ${patsubst %.html,%,$@}}" `cat content/${notdir ${patsubst %.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %.html,%_expanded.html,$@}}/'`>$@ | |
src/process.sh "${notdir ${patsubst %.html,%,$@}}" content/${notdir ${patsubst %.html,%.txt,$@}}>>$@ | |
src/footer.sh `cat content/${notdir ${patsubst %.html,%_links.txt,$@}}|sed 's/TARGET/${notdir ${patsubst %.html,%_expanded.html,$@}}/'`>>$@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment