2012-09-04 23:15:06 -06:00
|
|
|
#
|
2012-09-05 00:19:09 -06:00
|
|
|
# Top level GNO documentation makefile
|
2012-09-04 23:15:06 -06:00
|
|
|
#
|
|
|
|
SRCROOT = .
|
|
|
|
WEB_HOME_BASE =
|
2012-09-08 00:28:16 -06:00
|
|
|
SUBPROJECTS = refs refs.aug96 man faq
|
2012-09-04 23:15:06 -06:00
|
|
|
|
2012-09-05 23:32:09 -06:00
|
|
|
DYNAMIC_TARGETS = $(WEB_HOME)/head.html \
|
|
|
|
$(WEB_HOME)/tail.html \
|
|
|
|
$(WEB_HOME)/index.html \
|
|
|
|
$(WEB_HOME)/refs.html \
|
2012-09-07 00:13:50 -06:00
|
|
|
$(WEB_HOME)/manindex.html \
|
2012-09-08 00:28:16 -06:00
|
|
|
$(WEB_HOME)/faqindex.html \
|
2012-09-08 22:30:02 -06:00
|
|
|
$(WEB_HOME)/related.html \
|
|
|
|
$(WEB_HOME)/bugs.html \
|
|
|
|
$(WEB_HOME)/download.html \
|
2012-09-05 23:32:09 -06:00
|
|
|
$(WEB_HOME)/oldnews.html
|
|
|
|
|
|
|
|
STATIC_TARGETS =
|
|
|
|
|
|
|
|
TARGETS = $(STATIC_TARGETS) $(DYNAMIC_TARGETS)
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-04 23:15:06 -06:00
|
|
|
include $(SRCROOT)/etc/const-priv.mk
|
|
|
|
include $(SRCROOT)/etc/const.mk
|
|
|
|
-include $(SRCROOT)/etc/const-local.mk
|
|
|
|
|
2012-09-05 23:32:09 -06:00
|
|
|
# Set these ones AFTER const.mk gets included:
|
|
|
|
FIX_WEB_HOME_PERMS = no
|
|
|
|
|
|
|
|
|
2012-09-04 23:15:06 -06:00
|
|
|
include $(SRCROOT)/etc/rules.mk
|
2012-09-05 00:04:10 -06:00
|
|
|
|
|
|
|
clobber::
|
|
|
|
/bin/rm -rf $(OUTPUT_DIR)
|
2012-09-05 23:32:09 -06:00
|
|
|
|
|
|
|
# We do a straight copy on these ones.
|
|
|
|
$(WEB_HOME)/%.html: %.html
|
|
|
|
install -m644 $< $@
|
|
|
|
|
|
|
|
finalWebHomePerms::
|
|
|
|
@if [ -n "$(STATIC_TARGETS)" ]; then \
|
|
|
|
chmod 0644 $(STATIC_TARGETS); \
|
|
|
|
fi
|
|
|
|
@if [ -n "$(DYNAMIC_TARGETS)" ]; then \
|
|
|
|
chmod 0754 $(DYNAMIC_TARGETS); \
|
|
|
|
fi
|