kleines "doku-release" entfernt
Erstellung eines vollstaendigen Zip-Archivs hinzugefuegt target 'check' nach 'linkchecker' umbenannt
This commit is contained in:
parent
515c67d868
commit
300d9bb7c3
1 changed files with 11 additions and 30 deletions
41
Makefile
41
Makefile
|
@ -25,6 +25,7 @@ CREATE_DIRS = $(TMP_ROOT) $(EXPORT_DIR)
|
|||
|
||||
# Aktionen
|
||||
ERZEUGE_TAR = tar cjhf $(EXPORT_FILE).tar.bz2 -C $(dir $(CCD_BUILD_DIR)) $(notdir $(CCD_BUILD_DIR))
|
||||
ERZEUGE_ZIP = (cd $(dir $(CCD_BUILD_DIR)); zip -9rq - $(notdir $(CCD_BUILD_DIR))) >$(EXPORT_FILE).zip
|
||||
ERZEUGE_ISO = mkisofs -quiet $(ISO_OPTS) -o $(EXPORT_FILE).iso $(CCD_BUILD_DIR) 2>&1 | $(EINRUECKEN)
|
||||
|
||||
# Sonstiges
|
||||
|
@ -38,7 +39,7 @@ export CCD_BUILD_DIR
|
|||
|
||||
########### Allgemeine targets ###########
|
||||
|
||||
.PHONY : clean clean-dist all documents check help website doku-release release source all cd-template kopiere_programme
|
||||
.PHONY : clean clean-dist all documents linkcheck help website release source all cd-template kopiere_programme
|
||||
|
||||
help:
|
||||
@echo "allgemeine Targets:"
|
||||
|
@ -46,29 +47,27 @@ help:
|
|||
@echo " doku - das Doku-Verzeichnis erneuern"
|
||||
@echo " clean - unnoetige Dateien loeschen (ohne downloads)"
|
||||
@echo " dist-clean - unnoetige Dateien loeschen (inklusive downloads)"
|
||||
@echo " check - Pruefung der Links"
|
||||
@echo " linkcheck - Pruefung der Links"
|
||||
@echo " validate - Pruefung des html-Codes"
|
||||
@echo
|
||||
@echo "Export-Targets:"
|
||||
@echo " source - die lyx-Quellen und Bilder"
|
||||
@echo " website - fuer die Webseite: mit Programmen, ohne Chaosradio"
|
||||
@echo " doku-release - alles ausser Chaosradio"
|
||||
@echo " release - mit Chaosradio-Dateien"
|
||||
@echo " website - fuer die Webseite: mit Programmen"
|
||||
@echo " release - erstellt das iso-Image und das zip-Archiv"
|
||||
@echo " all - erstellt alle Export-Formen"
|
||||
|
||||
|
||||
clean:
|
||||
@echo $(ICH)
|
||||
-make -C documents clean
|
||||
-rm -r $(TMP_ROOT)/* 2>/dev/null
|
||||
|
||||
|
||||
dist-clean: clean
|
||||
# runtergeladene Dateien loeschen
|
||||
@# runtergeladene Dateien loeschen
|
||||
@downloads/get_files.sh programme clean
|
||||
|
||||
|
||||
check: doku kopiere_programme
|
||||
linkcheck: doku kopiere_programme
|
||||
linkchecker -r 4 --ignore-url=^mailto: $(CCD_BUILD_DIR)/start.html
|
||||
|
||||
|
||||
|
@ -108,9 +107,9 @@ kopiere_programme: cd-template
|
|||
####### die Ausgabe-Formate ###########
|
||||
website: EXPORT_FILE_SUFFIX := _website
|
||||
website: doku kopiere_programme
|
||||
@echo "Gruppen-Schreibrecht setzen (fuer eduforge) ..."
|
||||
@chmod -R g+rw $(TMP_ROOT)
|
||||
@echo "Erzeuge Archiv der online-Dateien ..."
|
||||
@# Gruppen-Schreibrecht setzen (fuer eduforge)
|
||||
@chmod -R g+rw $(TMP_ROOT)
|
||||
@$(ERZEUGE_TAR)
|
||||
|
||||
|
||||
|
@ -123,34 +122,16 @@ source:
|
|||
@$(ERZEUGE_TAR)
|
||||
|
||||
|
||||
doku-release: EXPORT_FILE_SUFFIX := _doku
|
||||
doku-release: ZIP_DIR := $(CCD_BUILD_DIR)/$(EXPORT_PREFIX)-doku$(REVISIONS_SUFFIX)
|
||||
doku-release: doku
|
||||
@echo "Kopiere die Doku-Dateien ..."
|
||||
@rm -rf "$(ZIP_DIR)"
|
||||
@rm -f "$(EXPORT_FILE).zip"
|
||||
@cp -r "$(CCD_BUILD_DIR)/doku" "$(ZIP_DIR)"
|
||||
@echo "Erzeuge zip-Archiv ..."
|
||||
@cd "$(dir $(ZIP_DIR))"; zip -9qr "$(EXPORT_FILE).zip" "$(notdir $(ZIP_DIR))"
|
||||
@rm -rf "$(ZIP_DIR)"
|
||||
|
||||
|
||||
release: EXPORT_FILE_SUFFIX := _release
|
||||
release: doku kopiere_programme
|
||||
@echo "Erzeuge iso-Image ..."
|
||||
@$(ERZEUGE_ISO)
|
||||
@echo "Erzeuge zip-Archiv ..."
|
||||
@$(ERZEUGE_ZIP)
|
||||
|
||||
|
||||
all:
|
||||
@echo "Erstelle die Web-Seite ..."
|
||||
@make website
|
||||
|
||||
@echo "Erstelle das Doku-Paket ..."
|
||||
@make doku-release
|
||||
|
||||
@echo "Erstelle das Release-Paket ..."
|
||||
@make release
|
||||
|
||||
@echo "Erstelle das Quell-Paket ... "
|
||||
@make source
|
||||
|
||||
|
|
Loading…
Reference in a new issue